PocketMatrix forums

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

FontMaker font Creation

Birdiestyle · 18 Jan 2005, 21:01 UTC
Ok, what are the steps to make a new font with the Fontmaker, I'm using (3.01). I create the font in the fontmaker, copy it to clipboard, save it in paint as a .png file (edit it first so quotation kerning line is as long as quote character). Then bring it in to my resource... and call

Code:

m_fontRed.CreateSurface(GDSURFACE_SYSTEMMEMORY, hInstance, IDR_TESTFONT_PNG, TEXT("PNG"));

GDFONTFX fontfx;
fontfx.lTracking = 3;
HRESULT hr;
hr = m_fontRed.CreateFont(NULL, TRANSPARENTCOLOR, GDCREATEFONT_TRACKING, &fontfx;);


And they all seem to return GDERR_INVALIDBITMAP. So am I skipping a step or overlooking something? The lTracking is just spacing used, and doesnt have anything to do with the kerning lines does it? I would have guessed that any font created with fontmaker would be correct from the get go, but?

Thanks
Birdiestyle · 18 Jan 2005, 21:31 UTC
I knew if I asked the question I would figure it out myself. At least I asked quick enough that I figured this out today, as it wasnt that evident and probably should have been documented somewhere, but...

I am correct, Fontmaker does not always create valid font files. You must go thru by hand and make sure there is at least one blank vertical line of transparent pixels between either the kerning lines and/or the the first pixels of the character and those of the previous character/line...
Thomas Sempf · 19 Jan 2005, 17:45 UTC
Yes, it is a bug in the font maker code, unfortunately...
BTW, deso anyone know a good idea how to support unicode fonts on PocketPC, Symbian and Palm with GapiDraw?