Ok, I'm sorry to see that nobody answers and I know that there are some
font masters here being much more familiar with this stuff than me...

So, how to create your own font in few words:

1) Download some font creating utility (I used xFONT - it's very simple
and free) and create text output file containing your font definition.
Name it "font.txt". It's an input file for PilRC.

2) Fetch PilRC from Aaron Ardiri (you'll find his sddress, he's posting to
this group often).

3) Now you have to compile your font by PilRC to get binary to include
into your CodeWarrior project. So, create some tmp directory containing
pilrc.exe, cygwin1.dll and font.txt. Now create text file containing line

FONT ID 1000 FONTID 128 "font.txt"

and name it "font.res" (input for PilRC). Now from DOS prompt type

pilrc font.res

and you should have your binary as output (#!?something#&.bin). Rename
that to "font.bin" and copy it into your CW project directory.

4) Create text file containing line

read 'Font' (100) "font.bin";

and name it "font.r". Include that file into your CW project and make sure
that .r files are handled by REZ. Palm REZ should do the rest.

5) Now, you can use APIs to access your font:

#define myFont ((FontID)129)

FontPtr fontP;
VoidHand fontH;

fontH=DmGetREsource('Font',100);
fontP=MemHandleLock(fontH);
FntDefineFont(myFont,fontP);

etc, etc, etc.....



It's all documented in PilRC documentation, and PalmOS >=3.0 API reference
books, so consult that refs and OS >=3.0 header files  in order to
understand meanings of fntCustomBase, resource ID's etc... and to correct
my eventual errors that might have occured because I wrote this story
directly from my memory.

Regards,

-DR







On Thu, 27 Apr 2000, Ole Grossklaus wrote:

> Hello Douglas,
> 
> I have just learnd a couple days ago that it is avail by using hackmaster
> and FontHack 123 V2
> With this you can define new fonts for individual apps or the entire palm.
> (to be found at www.palmgear.com)
> 
> Fonts are then active as replacements for the 7 standard fonts.
> 
> The font definitions are made in PDB files that you can hotsync down to the
> Palm.
> 
> FontViewer and FontEditos are avail as well. Here a list of references I
> got:
> - FontEdit1.2
> - FontHack123
> - Alpha Fonts (comes with 44 different Font PDB files - great !)
> 
> Alternatively you may define your font resource and link it into your app
> but I don't have any info on how to do that.
> 
> Hope that is of some help
> Ole
> 
> Gordon, Douglas <[EMAIL PROTECTED]> schrieb in im
> Newsbeitrag: [EMAIL PROTECTED]
> >
> > I've seen a couple of Palm apps that use a font that is smaller than
> what's
> > standard in the OS. Does anyone know if a font like this is available
> > somewhere in a form that I could build it into my own app and use it?
> >
> >   Doug Gordon
> >   GHCS Software
> >
> >
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palm.com/devzone/mailinglists.html
> 
> 


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to