[oXygen-user] FOP Question
Sebastian Heath
Thu Feb 5 10:40:00 CST 2004
The following may well be only a FOP question but perhaps there is
particular expertise on this list:
Platform: Oxygen 3.0 on MacOS X 10.2.8. java version "1.4.1_01"
I have a transformation scenario set up to produce a pdf. All is
working well except some unicode characters are appearing as # in the
resulting pdf. Specifically, ć - Latin Small Letter C with Acute
and đ Latin Small Letter D with Stroke. These are both in Latin
Extended-A. My encoding for all documents is utf-8 and many other
unicode characters are coming through just fine. I've tried both Times
and Helvetica and the problem persists.
I saw the PDF file about adding fonts to FOP but am having problems
with that. When I run the following script:
#!/bin/sh
export LIB=oxygen.app/Contents/Resources/Java
export CMD="java -cp
$LIB/fop.jar:$LIB/avalon-framework-4.1.3.jar:$LIB/xml-apis.jar:"
export CMD="$CMD$LIB/xercesImpl.jar:$LIB/xalan.jar
org.apache.fop.fonts.apps.TTFReader"
export FONT_DIR='/Library/Fonts'
$CMD $FONT_DIR/ArialHB.ttf ArialHB.xml
I get the following output:
TTF Reader v1.1.1
Reading /Library/Fonts/ArialHB.ttf...
Number of glyphs in font: 180
Unicode cmap table not present
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.get(ArrayList.java:320)
at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449)
at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439)
at
org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222)
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184)
I am by no means a java expert but it looks like "Unicode cmap table
not present" is the informative part of that output. A little bit of
googling did not produce a ready answer.
Again, I understand that this may not be an oxygen problem but would
appreciate any suggestions group members might have.
Thanks,
Sebastian.
------------------------------------------------------------------------
Sebastian Heath E-Mail:
Director of Information Technology Phone: 212 234 3130 x215
The American Numismatic Society Fax: 212 234 3381
Broadway at 155th Street Web:
http://www.numismatics.org
New York, NY 10032
More information about the oXygen-user
mailing list