PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Issue in True Type Fonts

Hi! I'm working along with the artist that is in charge of the GUI layout of my project and we've came across a little problem with fonts.

He decided to use for certain sections of the UI the Tahoma font that is bundled with Windows (more specificallt, Tahoma Bold 11 pt). I used the "EDGELIB Font Maker" program to create the png file to be used as an RGB surface (no antialiasing) but, somehow, there are visual differences between the screenshot the artist sent me and what my program is displaying.

I attach a rar file with the two screenshots so that you can see them. Any hint of can I solve this issue?

Thanks in advance,

--Nacho

Edit: Title mispelled.
Attachments:
TahomaFontRender.rar (43 KB)
Hi Nacho,

When we export the Tahoma font with 11px height, it doesn't look like the screenshot you've attached. Perhaps you're using the bold version of the font? For example, in our file the L is less thick. It could also be that you've exported the anti-aliased version of the font, and imported it as an RGB surface.

For font surfaces I really recommend using RGBA and anti-aliasing when using the font maker tool.
edge wrote:Hi Nacho,

When we export the Tahoma font with 11px height, it doesn't look like the screenshot you've attached. Perhaps you're using the bold version of the font? For example, in our file the L is less thick. It could also be that you've exported the anti-aliased version of the font, and imported it as an RGB surface.


Yes, sorry about that. I think I didn't express myself clear enough in my original post. Let me reformulate: the font I used is the one that appears as "tahomabd.ttf" in the "EDGELIB font maker" utility program. I set the size to 11 and left the "Anti aliased font" option unchecked.

edge wrote:For font surfaces I really recommend using RGBA and anti-aliasing when using the font maker tool.


If possible, I would like to stick to RGB surfaces since I'm not going to need RGBA surfaces for the rest of the game. Can you recommend another solution? The artist told me something about pixel fonts, but I've been searching through the forums and couldn't find anything useful.

Thanks for your reply Edge,

--Nacho
Hi Nacho,

The tahomabd.ttf file seems to indicate that this is a bold version of the original font. There should also be a normal tahoma.ttf file for a non-bold version. The EDGELIB font maker used the Freetype library to generate the font file and may not look as good as Photoshop or Windows font rendering (especially for not anti-aliased fonts).

A pixel font is actually the result you see after running the truetype font through the font maker tool. If you show your artist the layout/sample of the font file, I'm sure he is able to create a pixel font that you can load with EDGELIB.
edge,

I gave the artist the font template and he managed to create the proper font based on it. It looks neat now, so thanks again for your help. :)

--Nacho