Works great, at least it fixes my TimesNewRoman font problem.

Thanks Jeremias! 

Ingo

> -----Ursprüngliche Nachricht-----
> Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 4. Juni 2008 08:34
> An: [email protected]
> Betreff: Re: Font auto detection combined with font aliases
> 
> A font substitution facility to handle this requirement has 
> recently been added to FOP Trunk. I've just updated the 
> website but it will take a few hours until the web server is 
> synchronized. So I'll just paste the documentation here for 
> your convenience:
> 
> Substitution
> 
> When a <substitutions/> section is defined in the 
> configuration, FOP will re-map any font-family references 
> found in your FO input to a given substitution font.
> 
>     * If a <substitution/> is declared, it is mandatory that both a
>       <from/> and <to/> child element is declared with a font-family
>       attribute.
>     * Both font-weight and font-style are optional attributes, if they
>       are provided then a value of 'normal' is assumed.
> 
> For example you could make all FO font-family references to 
> 'Arial' with weights between 700 and 900 reference the normal 
> 'Arial Black' font.
> 
> <fop version="1.0">
>    <fonts>
>       <substitutions>
>          <substitution>
>             <from font-family="Arial" font-weight="700..900"/>
>             <to font-family="Arial Black"/>
>          </substitution>
>          <substitution>
>             <from font-family="FrutigerLight"/>
>             <to font-family="Times" font-weight="bold" 
> font-style="italic"/>
>          </substitution>
>       </substitutions>
>    </fonts>
> </fop>
> 
> This will pop up here later:
> http://xmlgraphics.apache.org/fop/trunk/fonts.html
> 
> Feedback is welcome as it's a new feature!
> 
> Jeremias Maerki


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

Reply via email to