You can do it through constructer, see the sample code for teeny fonts at
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_si
d=wPxSNx5h&p_lva=&p_faqid=139&p_created=1032297447&p_sp=cF9zcmNoPTEmcF9ncmlk
c29ydD0mcF9yb3dfY250PTE0JnBfc2VhcmNoX3RleHQ9Zm9udHMmcF9zZWFyY2hfdHlwZT0zJnBf
cHJvZF9sdmwxPX5hbnl_JnBfY2F0X2x2bDE9fmFueX4mcF9zb3J0X2J5PWRmbHQmcF9wYWdlPTE*
&p_li=
and just remove the low density font. Then make sure in your program that
you init the correct font. Just be careful with screens more than 320*320, I
haven't tested the results.
LionScribe

"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 07:52 AM 3/4/2004, you wrote:
> >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/

Reply via email to