Here is the recepie for using the tiny fonts downloaded from the PalmSource
knowledge base with PRC tools:

1) extract the following 4 files from the archive:
-BoldHalfSizeLatinFont.rsrc
-NormalHalfSizeLatinFont.rsrc
-LargeHalfSizeLatinFont.rsrc
-LargeBoldHalfSizeLatinFont.rsrc

2) process each file with rsrc2rcp. The resulting rcp files will each create
3 HEX resources (2-NFNT, 1-tfnf) . Each HEX resource is one gigantic line.
You either need to modify rsrc2rcp to add line breaks, or edit them in
manually.

3) run pilrc on each .rcp file.

4) process each for the 8 NFNT*.bin files generated by step 3 with
Fontpdb2txt. Ignore the tfnf*.bin files.

5) using pilrc beta 3.0, create 4 FONTFAMILY (nfnt) resources from each pair
of font txt files created in step 4.

6) Use the nfnt resources as per the example code.

Thanks to all for your help! If anyone would like the font txt files, let me
know.

Dave

"Dave Lasker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I got Fontpdb2txt. It reads either .pdb or .bin files. Since I don't have
CW
> to build a .prc, I ran it on the .bin files created by pilrc using my
"HEX"
> NFNT .rcp files created by rsrc2rcp created from the PalmSource sample
app.
> The output from the full size font looks correct. The output from the 1/2
> size font looks like gibberish, which is probably why it displayed as
such.
> At this point I'm guessing that rsrc2rcp didn't work correctly.
>
> Reading both .pfn files generated by Fontpdb2txt into xFONT caused xFONT
to
> crash. Not sure if this is a problem with xFont or with my results.
>
> If someone with CW would be willing to build the PalmSource sample app and
> email me the .prc file, I'll try feeding it into Fontpdb2txt. The link to
> the PalmSource sample app is at:
>
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_sid=BW5NGzTg&p_lva=&p_faqid=139&p_created=1032297447&p_sp=cF9zcmNoPTEmcF9ncmlk
c29ydD0mcF9yb3dfY250PTEmcF9zZWFyY2hfdGV4dD10aW55JnBfc2VhcmNoX3R5cGU9MyZwX3By
b2RfbHZsMT1_YW55fiZwX2NhdF9sdmwxPX5hbnl_JnBfc29ydF9ieT1kZmx0JnBfcGFnZT0x&p_l
i=
>
> Thanks for the help!
>
> Dave
>
>
> "LionScribe" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > Use the free java program "Fontpdb2txt" to convert to PilRC style. Just
> > search for it with Google.
> > LionScribe
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Dave
> > Lasker
> > Sent: Wednesday, September 17, 2003 1:17 PM
> > To: Palm Developer Forum
> > Subject: Re: Tiny fonts
> >
> >
> > I put the 4 tiny font rcsc files from the palmsource KB through
> rsrc2rcp.pl.
> > Since rsrc2rcp doesn't know about font resources, the results are HEX.
> Each
> > HEX resource was a very long single record. This was too big for pilrc,
so
> I
> > modified rsrc2rcp.pl to put in additional linebreaks. This allowed pilrc
> to
> > compile the fonts with no error messages. In testing the results, I got
> some
> > very strange behaviour...
> >
> > 1) The output of rsrc2rcp is 2 resources of type 'NFNT' (expected) and 1
> of
> > type 'tfnf' (should be 'nfnt').
> > 2) The 'tfnf' font displays full size characters at 1/2 resolution
(should
> > have been half size characters).
> > 3) Using one of the NFNT fonts directly yeilds full size characters at
1/2
> > resolution (expected), but the other NFNT font gives half-size gibberish
> > (aw, shucks!).
> >
> > I am also interested in expermenting with tiny fonts that are
> > pilrc-readable...if anyone has these, please let me know as well.
> >
> > Thanks...
> >
> > Dave
> >
> > "Matthew Darkstorm Bevan" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > >
> > > I was about to re-post that.  Grr.  Using a function like that is
slow,
> > > however, and does not allow the use of the standard font functions
> > > without hacking around a lot.  I would seriousally prefer to embed
> > > 'tiny' versions of the standard fonts (i.e. the standard fonts low
> > > density set to high density) in my applications.  If anyone has a copy
> > > of the four standard fonts in a format readable by PilRC, I would
> > > appreciate a copy.
> > >
> > > --
> > > Matthew (Darkstorm) Bevan       [EMAIL PROTECTED]
> > > Margin Software, NECTI.  http://www.marginsoftware.com
> > >  Re-inventing the wheel, every time.
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palmos.com/dev/support/forums/
> >
> >
> >
> >
>
>
>
>



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

Reply via email to