"Matthew Bevan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm trying to get the spiffy high-density FONTFAMILY structure working in
my
> app.  When I use the following, however, all I get on-screen is
demi-random
> noise.  (Not entirely random, as each character has specific randomness...
> if you know what I mean.)  I set a field to use the newly instantiated
font.
> Does anyone have a working example?

Did you ever get this to work?.. I'm getting hte exact same thing today.
Here's my code:

FONT ID 131 FONTID 131 "std_lo.txt"

FONTFAMILY ID 131
BEGIN
 FONT "std_lo.txt" DENSITY 72
 FONT "std_hi.txt" DENSITY 144
END

Initialise the font:

fontHandle = DmGetResource(fontExtRscType, 131);
fontPtr = (FontType*)MemHandleLock(fontHandle);
error = FntDefineFont((FontID)131, fontPtr);

Use the font:

oldFont = FntSetFont(131);


Alan



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to