Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Mon 01/08/2016 18:06:31

Title: Fonts get cut off
Post by: Slasher on Mon 01/08/2016 18:06:31
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):
(http://i1181.photobucket.com/albums/x423/qikfire/AGS%20FONTS_zpsgud2hssg.png)



Title: Re: font's get cut-off
Post by: Cassiebsg on Mon 01/08/2016 21:20:33
Uhm... did you try and increase the height of the label/GUI?
Title: Re: font's get cut-off
Post by: Crimson Wizard on Mon 01/08/2016 21:37:35
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
Title: Re: font's get cut-off
Post by: Slasher on Tue 02/08/2016 05:30:18
Hi Crimson,

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

Labels seem OK.
Title: Re: font's get cut-off
Post by: Crimson Wizard on Tue 02/08/2016 10:34:11
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.
Title: Re: font's get cut-off
Post by: Slasher on Tue 02/08/2016 11:29:31
Hi Crimson,

it seems ags only looks for supported file types TTF. WFN do not show up in import folder.
Title: Re: font's get cut-off
Post by: Crimson Wizard on Tue 02/08/2016 12:23:25
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.
Title: Re: Fonts get cut off
Post by: Slasher on Tue 02/08/2016 20:21:21
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



Title: Re: Fonts get cut off
Post by: Cassiebsg on Tue 02/08/2016 20:25:38
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. ;)
Title: Re: Fonts get cut off
Post by: Crimson Wizard on Tue 02/08/2016 20:31:23
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.
Title: Re: Fonts get cut off
Post by: Slasher on Wed 03/08/2016 08:18:52
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
Title: Re: Fonts get cut off
Post by: Crimson Wizard on Wed 03/08/2016 12:43:09
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 (http://www.adventuregamestudio.co.uk/forums/index.php?topic=53374.msg636533192#msg636533192) 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.
Title: Re: Fonts get cut off
Post by: Slasher on Wed 03/08/2016 14:58:37
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)

Title: Re: Fonts get cut off
Post by: Crimson Wizard on Wed 03/08/2016 15:21:35
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.