> Regarding to my previous mail if I add the following code the system will 
> gave me an error when I tried to run my application:
> 
>     customFontH = DmGetResource(fontRscType, 1006);

ErrFatalDisplayIf(customFontH == NULL, "font resource not found");

>     customFontP = (FontType *)MemHandleLock(customFontH);
>     FntDefineFont((FontID)128, customFontP);
> 
>     FntSetFont((FontID)128);
> 
> Please, help if there is any error on my code.

use that to see if your DmGetResource() call is failing - if not, the
problem is somewhere else (maybe nothing to do with the font code).
old versions of pilrc has a pilrctst program, which, does do custom
fonts as a demonstration. you might want to look at that too - it works.

---
Aaron Ardiri                           [EMAIL PROTECTED]
CEO - CTO                                              +46 70 656 1143
Mobile Wizardry                         http://www.mobilewizardry.com/


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

Reply via email to