How can I create and use custom font without FontBucket? I thought I could 
create a custom font .pdb file using FontBucket create utility, then use par 
to extract the font binary record. Then I can add the record a custom 
resource to my app. At run time I can load the binary resource. lock it cast 
to FontPtr then add custom font and use it.

    FontPtr* myFont;
    MemHandle h = DmGetResource('Font', 1200);
    myFont= (FontPtr)MemHandleLock(h);
    Err err = FntDefineFont((FontID)128, myFont);
    FntSetFont((FontID)128);

All API seem to succeed however drawing does not use my custom font.

Any help would be appreciated. 



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

Reply via email to