"elena" <[EMAIL PROTECTED]> wrote in message
news:63200@palm-dev-forum...
>
> I'm using the pilrc codewarrior plugin and xfont to create a custom
font.
>
> my .rcp file include one line:
> FONT ID 2000 FONTID 128 "8.PFN"
>
> in the start of the application I have the next code :
>
> fontHandle=DmGetResource('NFNT',2000);
> font=MemHandleLock(fontHandle);
> FntDefineFont(128,font);
>
> I checked this font in debugger -all correct.
> and FntDefineFont return errNone;
>
> in the continue in one of the functions I have the next code:
>
> FntSetFont(128);
> FrmCopyLabel(frm,label,"test") ;// where instead word "test" I have
my own
> symbols. In
> // example in hex
> "test"="0x80,0x81,0x82"
> frmDrawForm(frm);
> In GLYPH 128 which is in my *.pfn file I have for example "A".
>
> Although in my application I don't see "A" but symbol of the system if
I
> haven't used custom fonts.
You never set the font of the label to be your custom font -- the system
only uses the default font for your own calls to WinDrawChars (and
similar functions). To affect a control, you have to alter the
control's data structures to make it use your custom font.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/