Currently we use application custom fonts. We DO NOT include them into our main application as a resource, instead we embed them into each database that a user has. We store the fonts as just plain records, then we load them (in the application) by getting a handle to the record, then locking it and casting it as a FontType*. Then we use FntDefineFont and an incrementing number to define the fonts.
We have three different sizes 8, 11, 22 - I use the 11 as a small font and the 22 as a large font on Sony Devices that are in hi-res mode. (320x320). Unfortunately PalmOS 5.x hi-res doesn't quite perform the same way. (e.g. I can't just have a 22pt font and put it on the hi-res screen and it will show up as a sharp 11pt font.) Since the Sony does this, is there a way to make the new OS5 do the same thing? OR My real question: We add our custom fonts to our database by taking the font.bin file, loading it as a byte-array then storing that data directly into a palm record. We get the bin file by creating the font with xFont, adding the font resource into the constructor by adding a font.rcp file that has an entry like: FONT ID 3000 FONTID 128 "c:\\src\\towncompass\\Fonts\\font_8.pfn" (the pfn was created by xFont) After compiling the prc with this font resource in it, I then use the prc2bin application to pull our all the resources, then keeping the resulting NFNT resources. After all this is done, I then just pull in the font.bin file as a filestream (byte*) and store it. How can we generate hi-density fonts with this procedure? - Is there another way? The fonts I have are true-type fonts that were created for windows, therefore I like xFont because it creates the pfn's that I need for PilRc. I'm using CodeWarrior 8.x Any help would be greatly appreciated. thanks - bill -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
