Glenn,
That was the ticket. I ended up opening the font with the program
FontForge, and resaving it to rebuild the Unicode list. Now it works fine
inside of FOP.
Thanks,
Nathan Davis| Interface Analyst| vRad
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. The
company accepts no liability for any damage caused by any virus transmitted by
this email.
From: Glenn Adams [mailto:gl...@skynav.com]
Sent: Thursday, April 04, 2013 5:36 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error with missing glyphs in font.
Keep in mind that character codes in FOP files always represent Unicode code
points, not glyph codes. You should check the font's CMAP to see what Unicode
codepoints it assigns to its glyphs. They will probably be in the PUA [1],
i.e., from 0xE000 to 0xF8FF. Then you will need to use these codes in your FOP
source file, e.g., by using numeric character references, like etc.
You should not be specifying or using an external font metrics file.
[1] http://en.wikipedia.org/wiki/Private_Use_(Unicode)
On Thu, Apr 4, 2013 at 3:23 PM, Nathan Davis wrote:
Hello all,
I've been chasing an issue with FOP for a little while and hit a bit of
a wall.
I've added a new font to the list of fonts we can use when rendering a
PDF. However no matter what character I enter, FOP gives me an error for every
single letter. For example, with the letter E it says 'WARNING: Glyph "e"
(0x65, e) not available in font "Code128".'
There are lots of posts where people are trying to pass in non-english
language, but in this case I'm passing in standard roman letters and numbers.
Nothing fancy.
In searching this error message I've found the recommendation to add
the font to fop.xconf as described here:
http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-collections-metrics
but I still get the error.
The font I'm trying to get working here is a bar code font I downloaded
from this site: http://www.jtbarton.com/Barcodes/Code128.aspx and I've opened
up the font with a true type editor. There's nothing unusual there. Just a
pretty standard font and looking at the character map, I can see an entry for
0x65 that matches correctly and looks just like any other font. So I'm really
at a loss. Any suggestions where to look next?
Also, just an fyi, I know there's the option to add Barcode4j as an
extension to FOP. However since I'm using a system that has FOP embedded into
it, it's impossible for us to add any extensions to FOP. I've been down that
road with the vendor and we're stuck with using a barcode font and manually
calculating the checksum.
Thank you,
-Nathan Davis
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which
they are addressed. If you have received this email in error
please notify the system manager. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which
they are addressed. If you have received this email in error
please notify the system manager. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.