Simplified font configuration with FOP
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 24
- Joined: Sat Jul 12, 2008 3:46 am
- Location: Brisbane, Australia
Simplified font configuration with FOP
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>
-
- 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
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
-
- Posts: 24
- Joined: Sat Jul 12, 2008 3:46 am
- Location: Brisbane, Australia
Re: Simplified font configuration with FOP
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.
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.
-
- 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
Thank you,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service