PocketMatrix forums

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

FontMaker Bug (sort of)

InexorableTash · 07 Aug 2004, 05:04 UTC
The FontMaker tool included with GapiDraw was never intended to work with ClearType, so if you try to use it to generate fonts and have ClearType on you'll get weird results. Since ClearType is designed for display rendering only on laptops using subpixel rendering you end up with color fringes in the images.

You can tweak the CFontmakerView::OnSetfont function as follows to disable ClearType:

Code:

fontDlg.GetCurrentFont( &m_Font );
m_Font.lfQuality |= NONANTIALIASED_QUALITY; // Added
m_FontColor = fontDlg.GetColor();


Of course, this makes the whole "blend" feature kinda pointless, but it seems sketchy anyway - what we need is a tool that generates alpha masks. Speaking of which, is there a way to do fonts with alpha yet? Hmmmm... doesn't look like it. Darn!
Actually, I think Font Maker works great with ClearType. :) If you have a game with black background, just set the mask color to black in Fontmaker. Then open the font bitmap in Photoshop, use the fill tool with no anti-alias and 0 threshold and simply fill the areas that should be masked with the mask color. Voilá - bitmapped cleartype fonts on the Pocket PC. :) I've used it a lot to create cleartype fonts with my applications (most often I use a white background in FontMaker)...

But I agree, a menu switch to disable cleartype would be nice.. I'll see if I can add it easily...

We are working on a new alpha blend engine at the moment, and alpha blended fonts will be there.. In due time... :)
InexorableTash · 07 Aug 2004, 06:23 UTC
Note that ClearType != general antialiasing. With ClearType you actually end up with colored fringes (red/blue pixels around the edges of the glyphs). Since ClearType settings vary from device to device, baking the subpixel renditions into a bitmap isn't a good idea.

Good to hear about the alpha blends for fonts.