
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: heath@numismatics.org 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

I remember I tried to convert this font, but also I did not succeed. I switched then to a Unicode large coverage font, "Arial Unicode MS". This works fine for all latin, hebrew, chinese, etc. Once this font could be downloaded free of charge from Microsoft site, but they decided to make it commercial stuff. A search on Google should give you some alternate download sites. Best regards, Dan Sebastian Heath wrote:
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: heath@numismatics.org 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
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Dan Caprioara
-
Sebastian Heath