
Hello, The instructions from the article "How to Add a Font to the Oxygen built-in FOP" are specific for DocBook and TEI transformations and are intended to give two examples of how you can configure and embed a custom font in PDF output generated with the Apache FOP processor. Do you try to transform a DocBook XML document or a TEI XML one to PDF? If yes it seems something was wrong in applying the procedure described in the article. Please make a zip with a sample source XML file, the TrueType (.ttf) font files from which you generated the font metrics files, the font metrics files and the FOP configuration file. We will try to generate a PDF result with correct Czech glyphs and tell you what you did wrong. If not you have to make sure that your custom XSLT stylesheet generates an intermediate XSL-FO file with correct references to the fonts specified in the FOP configuration file. The FOP processor has to match these references with the font metrics files specified in the FOP configuration file. Regards, Sorin Mark Wilson wrote:
I am using: XML Editor 9.3, build 2008070211
I need to render Czech language glyphs. Since 'C' appeared as '#' in my PDF output, I assumed I needed to embed a font. I tried to embed Tlcenteu.ttf (Times Central Europe), following the directions in your "How to Add a Font to the Oxygen built-in FOP". It failed with an 'unexpected end of file' error.
So I went to http://www.sweb.cz/ls78/ttfonts.htm and downloaded Casy EA and Casy EA Bold. This time what appear to be two good metrics files, casy.xml and casy_0.xml, were built.
I added the fopConfiguration.xml file as instructed in your document, changed my font name in the XSL file from "sans serif" to "casy", and re-ran my transformation scenario. Although a good PDF file was produced, it appeared to be identical to the previous file and again did not render the Czech alphabet characters.
Have I missed a step? Thanks for any help, Mark