Simplified font configuration with FOP

Here should go questions about transforming XML with XSLT and FOP.
pbw
Posts: 24
Joined: Sat Jul 12, 2008 3:46 am
Location: Brisbane, Australia

Simplified font configuration with FOP

Post by pbw »

The help text (besides having big blocks of blank lines in the middle of the configuration example) doesn't mention the simplified font configuration available in 0.95.

Note that you can register all the system fonts with auto-detect, or register all of the fonts in a particular directory, or in a particular directory and its sub-directories.

This makes configuration a lot easier.

<fonts>
<!-- register a particular font -->
<font metrics-url="file:///C:/myfonts/FTL_____.xml" kerning="yes"
embed-url="file:///C:/myfonts/FTL_____.pfb">
<font-triplet name="FrutigerLight" style="normal" weight="normal"/>
</font>

<!-- register all the fonts found in a directory -->
<directory>C:\MyFonts1</directory>

<!-- register all the fonts found in a directory
and all of its sub directories (use with care) -->
<directory recursive="true">C:\MyFonts2</directory>

<!-- automatically detect operating system installed fonts -->
<auto-detect/>
</fonts>
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Simplified font configuration with FOP

Post by sorin_ristache »

Hello,

We removed the blank lines from the FOP config file examples of the User Manual on the website last week (on March 22).

I cannot find any description or example for auto-detect or directory on the Apache FOP website or in the XSD schemas included in the src distribution of Apache FOP 0.95 (the latest FOP version). Where can we find details or examples about them? Can you post a link to a webpage?


Thank you,
Sorin
pbw
Posts: 24
Joined: Sat Jul 12, 2008 3:46 am
Location: Brisbane, Australia

Re: Simplified font configuration with FOP

Post by pbw »

Sorry about the delay.

Try this one: http://xmlgraphics.apache.org/fop/trunk/fonts.html

It's a bit confusing, but when you use auto-detect, or specify a directory for fonts (with or without recursion) fonts are detected and auto-embedded, unless you also specify the font in a referenced-fonts element.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Simplified font configuration with FOP

Post by sorin_ristache »

Thank you for letting us know. We will update the section about the FOP config file for the next version of Oxygen.


Thank you,
Sorin
Post Reply