Using XFont, you can import some MSWin fonts. Choose one, import, save the file *.pfn.
If you need high density font, you must create a font family resizing all chars to
half the size of original font and save this in another file for low resolution font.
With PilRC, create a font as the example:
FONTFAMILY ID COURIER_FONT_ID
BEGIN
FONT "Courier10_72.pfn" DENSITY 72
FONT "Courier10_144.pfn" DENSITY 144
END
Then, in source .C file do:
[code]
WinSetCoordinateSystem(kCoordinatesNative);
memH=DmGetResource('nfnt', COURIER_FONT_ID);
if(memH==NULL){
WinSetCoordinateSystem(kCoordinatesStandard);
FrmCustomAlert(ALERT_ERROR,"Custom font not found!","","");
WinSetCoordinateSystem(kCoordinatesNative);
}else{
pFont=MemHandleLock(memH);
FntDefineFont(gCourier129,pFont);
MemHandleUnlock(memH);
}
WinSetCoordinateSystem(kCoordinatesStandard);
[/code]
where gCourier129 is FontID typed and pFont is FontPtr typed.
This will load high density (native format) fonts.
BrownB
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/