imk / docbkx-tools

Automatically exported from code.google.com/p/docbkx-tools
0 stars 0 forks source link

Generated metrics files result in missing glyph in PDF #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up your project to use a custom font with CMAP tables, such as DejaVu, 
http://dejavu-fonts.org/wiki/Main_Page.
2. Include a "special" character in your DocBook document present in the font 
such as ć.
3. Generate PDF. 

What is the expected output? What do you see instead?
Expected output: ć
Observed output: #

What version of the product are you using? On what operating system?
docbkx-tools 2.0.13, Java 1.6, Mac OS X and CentOS

Please provide any additional information below.

Font metrics files are deprecated with FOP 1.0, and only necessary if the fonts 
do not contain CMAP tables. With fonts that do contain CMAP tables, such as 
DejaVu, FOP used directly on the .fo without font metrics files does find all 
glyphs.

For additional details, see the discussion at 
http://groups.google.com/group/docbkx-tools-users/browse_thread/thread/6da9669e3
0a933d3?hl=en

Original issue reported on code.google.com by mark.cr...@gmail.com on 13 Oct 2011 at 5:17

GoogleCodeExporter commented 9 years ago
For further details, also see http://marc.info/?l=fop-user&m=131805584932060&w=2

The FOP 1.0 conf I used specified where to find the DejaVu fonts:

$ diff fop-1.0/fonts.xml fop-1.0/conf/fop.xconf 
81,82d80
<         
<directory>/Users/mark/Documents/workspace/opendj3/src/fonts</directory>
<         <!-- <auto-detect /> -->

If you want the whole project, svn co 
http://sources.forgerock.org/changelog/opendj/trunk/opendj3

Original comment by mark.cr...@gmail.com on 13 Oct 2011 at 5:25

GoogleCodeExporter commented 9 years ago
One workaround seems to be removing <ansi>true</ansi> from the configuration 
for docbkx-fop-support.

From http://blog.flotsam.nl/2010/02/docbook-fop-and-fonts.html, I went to 
http://xmlgraphics.apache.org/fop/0.95/fonts.html and learned that using -enc 
ansi with fop limits the character set.

In any case, it seems to be working for me with DejaVu fonts.

Perhaps Example 15 in the User Guide should mention this.

Original comment by mark.cr...@gmail.com on 1 Mar 2012 at 2:45

GoogleCodeExporter commented 9 years ago
documentation updated in r269.

Original comment by MimilO...@gmail.com on 10 Jul 2013 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by MimilO...@gmail.com on 19 Jan 2014 at 7:18