Simplified font configuration with FOP
Posted: Fri Apr 02, 2010 5:40 am
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>
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>