If I remove the font families, and set my font to draw characters it works fine !!
From: "Aaron Ardiri" <[EMAIL PROTECTED]> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Subject: Re: Font Error 2 Date: Mon, 9 Jun 2003 12:20:08 +0200
> 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/
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
