> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> I want to Change the size of fonts of my application to be different than
> the size defined for the device. I have used the following code to do so.
> but in the end the application crashes
>
> FontType FONT;
> fontP = &FONT;
> fontP->fRectWidth = 4;
> fontP->fRectHeight = 4;
> FntDefineFont( fntAppFontCustomBase, fontP );
That won't work. FntDefineFont() requires you to supply a pointer to a
complete 'NFNT' font resource that you include in your application. The
code above just creates a font resource header containing garbage.
(Actually the code above vaguely resembles usage of the CreateFontIndirect()
API in Win32, which requests the system's font mapper to go find a font for
you that best matches your parameters. There is no equivalent of that on
Palm OS. You must supply the exact desired font resource yourself.)
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/