Thanks for the link. But what I need is some way for changing Font within
my application. Is it possible without using a pbd for Font?
"Fitzpatrick, Joe" <[EMAIL PROTECTED]> on 06/22/2000 09:16:07 PM
For an example of how to use FntDefineFont check out:
http://www.sochi.com/~sandy/fe/
Good Luck,
-jjf
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 21, 2000 10:54 PM
To: Palm Developer Forum
Subject: Defining Custom Font
Hi All,
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 .I take a fonttype and define a
font then i use a pointer to change the values of certain parameters
and then use the pointeer to define my custom font
but in the end the application crashes when I use windrawchars to draw the
fonts on my screen
FontPtr fontP;
FontType FONT;
fontP = &FONT;
FntSetFont(boldFont);
WinDrawChars("Test",StrLen("Test"),20,48); // Test
before setting size of Font
fontP->fRectWidth = 4;
fontP->fRectHeight = 4;
FntDefineFont(fntAppFontCustomBase,fontP);
FntSetFont(fntAppFontCustomBase);
FrmDrawForm(frmP);
WinDrawChars("Test",StrLen("Test"),20,60);
Thanks in advance.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/