docbook-apps

  • 1.  Using additional Fonts with FOP 0.93 failing

    Posted 02-19-2007 04:21
    I previously have used the Windows palatino font with FOP 0.25,
    successfully. I'm having trouble getting this to work in 0.93.

    Following the instructions, I regenerated the font metric information
    for 0.93, specifying the -enc ansi options in order to be able to embed
    the font. That seemed to generate OK, except for one warning message.
    Here's the messaged from that:

    [java] TTF Reader for Apache FOP 0.93
    [java] Parsing font...
    [java] Reading c:\Windows\fonts\pala.ttf...
    [java] Number of glyphs in font: 1328
    [java] Ascender and descender together are larger than the em box.
    This could lead to a wrong baseline placement in Apache FOP.
    [java] 8 cmap tables
    [java] CMAP format: 4
    [java] Creating xml font file...
    [java] Creating WinAnsi encoded metrics...
    [java] Writing xml font file
    C:\a\Eclipse\3.2.0\Apache\uima-docbooks\fop-0.93\lib\palatino.xml...
    [java] This font contains no embedding license restrictions.
    [java] XML font metrics file successfully created.

    I then modified my fontconfig.xml file to reference the newly generated
    font metric xml files for the plain, bold, italic, and bold-italic
    versions of this. I also noticed that 0.25 is now
    I know my fontconfig.xml is being read (using the -c option of FOP),
    because if I mess with the syntax of this file, I get a syntax error
    reported from FOP. However, I think it's not reading the generated font
    metrics files, because I can put invalid syntax into those, or even
    delete them, with no change in FOP behavior.

    Here's the start of the fontconfig.xml file:, showing the "relative"
    form used for the url (I tried, relative, with/without


  • 2.  RE: [docbook-apps] Using additional Fonts with FOP 0.93 failing

    Posted 02-19-2007 08:11
    >