Fonts get cut off

Started by Slasher, Mon 01/08/2016 18:06:31

Previous topic - Next topic

Slasher

Hi

I'm using 3.4.0.9
sierra speech
640 x 480
16bit colour
DD

As you can see the font's get cut-off. I have tried various fonts and sizes but the result is the same (speech font):





Cassiebsg

Uhm... did you try and increase the height of the label/GUI?
There are those who believe that life here began out there...

Crimson Wizard

#2
You say "speech font", does this mean it is speech line? (asking to be completely sure, because it could be label or drawn in script).
What type of font are you using - TTF or WFN?

If that is TTF, chances are this is a known issue: http://www.adventuregamestudio.co.uk/forums/index.php?topic=53374.0

Slasher

Hi Crimson,

it is indeed speech font TTF, tried verdana / comic ...I know there is a known issue with the drawing.

Labels seem OK.

Crimson Wizard

One solution available for users I found at the moment is to edit the font in some editor (e.g. FontForge) and rise the letters above baseline.
Another - copy TTF letters into WFN somehow.

Slasher

Hi Crimson,

it seems ags only looks for supported file types TTF. WFN do not show up in import folder.

Crimson Wizard

#6
Quote from: slasher on Tue 02/08/2016 11:29:31
it seems ags only looks for supported file types TTF. WFN do not show up in import folder.
Here are explanations to how import WFN fonts:
http://www.adventuregamestudio.co.uk/wiki/Fonts#How_to_import_fonts_into_AGS.3F

This comes up every now and then, I even mentioned it two days ago:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=53773.msg636540269#msg636540269

Guess this will be in my TODO list for next editor version.

Slasher

Hi Crimson

one of those font editors brought with it tons of crap and took me 3 hours to sort my pc out.. including browser hijacker.

almost got things back to normal.

could you not make an upgrade pack to resolve these issues of 3.4.0.9?

cheers




Cassiebsg

Off topic but: System restore! If you ever download and install something as nasty as that, do a system restore right away, then clean up any leftovers on the HD. Should take you all 15 minutes or so to return to normal. ;)
There are those who believe that life here began out there...

Crimson Wizard

#9
Quote from: slasher on Tue 02/08/2016 20:21:21
one of those font editors brought with it tons of crap and took me 3 hours to sort my pc out.. including browser hijacker.
Uhhh how do you people even get these problems...
This is the editor I mentioned: https://fontforge.github.io/. It is an official site of a popular project, and has direct download link.

Quote from: slasher on Tue 02/08/2016 20:21:21
could you not make an upgrade pack to resolve these issues of 3.4.0.9?
No, sorry, I am not doing any "update packs" anymore, because they disrupted my working schedule in the past, and working almost alone in most times I cannot afford doing that. Besides this is not the only request about "fixing something quickly" I got in past months... :(
I have this fonts issue in mind, and I will be working on it only when I am ready.
Unless someone else does this, but that is another story.

Another solution you may try is to write custom speech rendering, because then you can control how font is drawn, but that obviously would require some extra scripting.

Slasher

I understand what you say and things can get pretty heavy for you at times..

What about of I switched to 3.2.1 compatibility or importing back to 3.2.1 are these liable options?

cheers

Crimson Wizard

Quote from: slasher on Wed 03/08/2016 08:18:52
What about of I switched to 3.2.1 compatibility or importing back to 3.2.1 are these liable options?
Are you sure 3.2.1 displayed those fonts correctly?
This is important question, because if it did, then 3.4.0 broke something and I WILL have to fix that.
According to my research this fonts problem should be in every version of AGS, because it uses very old font library (I explained it here although honestly that information is of little value to users).

Just for reference, importing back into 3.2.1 automatically is impossible, but possible if you manually hack Game.agf file in the XML or text editor. I would use it as a very last resort though, because things may get messy there.


BTW, regarding other solutions, I think you may try using TextWindow GUI as speech background. Just don't draw anything (color or image) on textwindow, make it fully transparent instead. I think in such case you will get fonts fully draw, although their position may look a bit off.

Slasher

Hi Crimson,

Quoteregarding other solutions, I think you may try using TextWindow GUI as speech background. Just don't draw anything (color or image) on textwindow, make it fully transparent instead. I think in such case you will get fonts fully draw, although their position may look a bit off.
Yep... Did the trick and the text looks OK (nod)

One solution to this font problem sorted.

Thanks man (nod)


Crimson Wizard

Just to make things clear: this fonts problem is on my todo list for the nearest update, but I'd like to make things properly and without rush, this way I will be able to check few other issues along too.

SMF spam blocked by CleanTalk