Hello everybody,
How can I create a font family (extended font resource) with Pilrc that has got only one (1) high-res font member? I tried this way:
FONTFAMILY ID ItalicFontHiRes FONTID 130 BEGIN FONT "ItalicHiRes.pfn" DENSITY 144 END
But Pilrc just crashes without an error message. :-(
I have all the low-res fonts in an old-fashioned font resource anyway (for PalmOS 4.0), so I do not want to waste memory by compiling the low-res fonts into my application _twice_. In the program I load the correct font according to the High-Res Feature (as described in the SDK).
I found no way to convert between a nfnt and a NFNT resource programatically, since the data is organized differently in memory. I cannot belive I have to waste memory for a low-res font in the extended resource!
Yes, you do... the problem is that the font metrics that Palm OS uses are derived from the low-res font. That means you always need a low-res member of a font family. You can read more about this in the Fonts chapter of the recent Palm OS Reference PDFs.
It may eventually be possible to do a high-res only 'nfnt', deriving the low-res table from the high-density member, but that's not in PilRC right now. Of course, it shouldn't crash when you try it either -- file a bug report on this at http://sf.net/projects/pilrc please.
-- Ben Combee, senior DTS engineer, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/