Hi Nancy,

nancy_b wrote:
> Hi John,
> 
> Thanks for your response! Unfortunately, the auto-detect capability did not
> work for me. By the way, where is the main configuration file that FOP uses
> to process default fonts and other parameters?

Try to ‘semi-automatically’ configure the fonts:
– by manually pointing to the directory containing the Verdana fonts:
    <directory>/usr/share/fonts/truetype/verdana/</directory>
– if that doesn’t work for some variants (e.g., you get the upright
  version but not the italic one), then you have to go a step further:
    <font kerning="yes"
      embed-url="/usr/share/fonts/truetype/verdana/verdana.ttf">
      <font-triplet name="Verdana" style="normal" weight="normal"/>
    </font>
    <font kerning="yes"
      embed-url="/usr/share/fonts/truetype/verdana/verdana-italic.ttf">
      <font-triplet name="Verdana" style="italic" weight="normal"/>
    </font>
    etc.
    Note that the family name remains the same (Verdana), only the style
    and weight attributes change.

This works with both FOP 0.94 and 0.95. At any rate there’s no need to
generate the XML metrics files.


>WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 
>'ZapfDingbats,normal,400'.
>Sep 28, 2008 4:36:24 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
>WARNING: Font 'Symbol,normal,700' not found. Substituting with 
>'Symbol,normal,400'.

This is because there are not italic versions of the ZapfDingbats and
Symbol fonts. DocBook specifies those fonts so that a fallback can be
used for special characters, but this doesn’t work well with FOP. If
your custom font contains glyphs for all the characters you use in your
document, then you should have no problems. Verdana does contain glyphs
for all the characters and ponctuation marks commonly used in English,
at any rate. If you use other special characters like in mathematics,
watch unexpected ‘#’ in the output pdf: this is what FOP uses as an
indication that it couldn’t find a glyph for the corresponding
character.

BTW, you shouldn’t get those warnings with FOP 0.94. You do get them
with FOP 0.95, although this is not really desirable and I believe that
should be fixed again in FOP Trunk.


HTH,
Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to