PocketMatrix forums

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

Font tracking..

Is there anything special I need to do to get the bitmap FX tracking to work? It just doesn't seem to be working for me. When I specify a tracking (I've tried 3, 100, etc) and set the bitmap to TRACKING (not SIMPLEBITMAP), my text just simply doesn't display.
Here's the code I use for fonts in Rail Mania.

Code:

GDFONTFX ffx;
ffx.lTracking=1;
HRESULT hr = m_font->CreateSurface(0, getFullPath(_T("data/font.png"))); if(hr != GD_OK) return hr;
hr = m_font->CreateFont(_T(" ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!?.+"), __MAGENTA, GDCREATEFONT_TRACKING, &ffx;); if(hr != GD_OK) return hr;


There's really nothing here that's unusual. If you would like, you can email your font to me and I'll take a look at it. You can send it to grmoore at ppcstudios.com.
Only differences I see is that I'm loading mine from a resource, and it's a .gif file. Maybe I'll give .png a shot.

I'm not using anything special with the font, just typing out characters and numbers in photoshop then saving it. Check out the attachment;
Attachments:
times.gif
You'll need the white kerning marks over each letter.

EDIT: I added the kerning marks for you. That should fix the problem.
Attachments:
times[1].gif
Aha! I knew I was missing something obvious. Thanks, it worked. :)

EDIT: Just thought I'd mention how awsome that font maker is. Make fonts with it, copy to Photoshop, remove chars I don't want, and save. Good stuff. 8)
It was worth the time I spent writing it.