OK,

So someone at PalmSource is looking at it right now :-)
There are some problems in the way the fonts are generated.
I am currently working on a fix which I will send you Aaron but I wanted to
take some time to explain what the problems are.

A font may not contains all the characters or not even contiguous
characters. For example it may contain characters 48 to 57 (digits) and 32
(space).
Now if your font is the currently selected one and you try to draw or
manipulate (CharsWidth, ...) non existent characters, PalmOS is using the
"missing char". The missing char is an additional character added at the end
of the font which is not really part of it. It does not even has a number.
It is appended at the end of the bitmap and the 2 arrays (of widths and
columns) contains info for it at the end.
If your font does not provide this "missing char" you'd better not use any
character not in it.

PilRC already allows to put this missing char: you have to use
GLYPH -1
at the end of the resource definition file. However there are some problems
in the generation of such a font. Plus there are a couple of missing checks
(like GLYPH -1 must be the last one in the font definition file - given the
way PilRC compiles the font).
There are no provisions when it is not provided (like creating a 0-width
one).

I will fix that and also update PRCExplorer to explicitly display the
"missing char". Note that the bitmap displayed at the top of the font viewer
shows the missing char glyph when it is needed (because the char is not
defined).

OF COURSE THIS IS NOT PALMSOURCE OFFICIAL INFORMATION. I am providing it to
help tools developers to create tools which are fully operable with PalmOS.

Cordially,
Regis.


------------------------------------------------------------------------
Regis NICOLAS - Engineering Director, Montpellier Site
Palm OS 5.0 Technical Lead
Palm Computing Europe, a PalmSource, Inc. subsidiary
 
When the finger points to the sky, the idiot looks at the finger.


-----Original Message-----
From: Aaron Ardiri [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 7:09 PM
To: Palm Developer Forum
Subject: Re: Font Resource Format


On Mon, 25 Mar 2002, Lance Gregory wrote:
> Can anybody point me to where I might find the format for the font
> resources. I would like to use the FntDefineFont() API call, but can't
seem
> to find the format for a font file anywhere.

  pilrc has to what i know the best reverse engineered work for the
  font formats :) it is covered with warnings, and, i am not too sure
  if someone at palm has actually gone over it to verify it :)

// az
[EMAIL PROTECTED]
http://www.ardiri.com/


-- 
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