xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hennebert <vincent.henneb...@anyware-tech.com>
Subject Re: Font auto detection combined with font aliases
Date Wed, 04 Jun 2008 10:00:40 GMT
Hi Ingo,

Ingo Maas wrote:
> Hallo,
> 
> I have a little problem with the Windows font "Times New Roman". The Word2FO
> stylesheet from RenderX does a normalization of font family names, resulting
> in "TimesNewRoman" (without spaces) in the XSL-FO which FOP fails to resolve
> using its font auto detection feature. 
> 
> When using the old style font metrics settings in FOP configuration it
> was/is possible to set font family name aliases. Can someone confirm that
> it's not possible to use a combination of auto detection and font aliases
> without providing any metrics configuration.

FWIW, you can still use the old style configuration without providing
the XML metrics files. For the Times New Roman font you would do
something like this:
    <font embed-url="path/to/TimesNewRoman.ttf">
      <font-triplet name="TimesNewRoman" style="normal" weight="normal"/>
    </font>
    <font embed-url="path/to/TimesNewRoman-Italic.ttf">
      <font-triplet name="TimesNewRoman" style="italic" weight="normal"/>
    </font>
    <font embed-url="path/to/TimesNewRoman-Bold.ttf">
      <font-triplet name="TimesNewRoman" style="normal" weight="bold"/>
    </font>
    <font embed-url="path/to/TimesNewRoman-BoldItalic.ttf">
      <font-triplet name="TimesNewRoman" style="italic" weight="bold"/>
    </font>

This method will also work with versions 0.94 and 0.95.

HTH,
Vincent


-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message