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.

What I am doing wrong?
Any idea?





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

Reply via email to