aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-02-28 08:49:58 +0000
committerJeremias Maerki <jeremias@apache.org>2009-02-28 08:49:58 +0000
commit7d5beca43a09ad988822dfb910f395e7d9f073f6 (patch)
tree5d77398e8991cef71680b952f0100a901bd132cb
parente5071d4577f58761ab2fa73bcfd6595b4c402705 (diff)
downloadxmlgraphics-fop-7d5beca43a09ad988822dfb910f395e7d9f073f6.tar.gz
xmlgraphics-fop-7d5beca43a09ad988822dfb910f395e7d9f073f6.zip
Examples for "sub-font" usage with TTCs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@748794 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/documentation/content/xdocs/trunk/fonts.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/documentation/content/xdocs/trunk/fonts.xml b/src/documentation/content/xdocs/trunk/fonts.xml
index 429c86a51..261e6faf3 100644
--- a/src/documentation/content/xdocs/trunk/fonts.xml
+++ b/src/documentation/content/xdocs/trunk/fonts.xml
@@ -344,7 +344,7 @@
</warning>
</section>
<section id="truetype-collections-metrics">
- <title>TrueType Collections Font Metrics</title>
+ <title>TrueType Collections</title>
<p>TrueType collections (.ttc files) contain more than one font.
To create metrics files for these fonts, you must specify which font in the collection should be generated, by using the "-ttcname" option with the TTFReader.</p>
<p>To get a list of the fonts in a collection, just start the TTFReader as if it were a normal TrueType file (without the -ttcname option).
@@ -356,8 +356,11 @@
<p>
Alternatively, the individual sub-fonts of a TrueType Collections can be selected
using the "sub-font" attribute on the "font" element. That means that generating
- an XML font metrics file for TrueType collections is not necessary anymore.
+ an XML font metrics file for TrueType collections is not necessary anymore. Example:
</p>
+ <source><![CDATA[<font embed-url="gulim.ttc" sub-font="GulimChe">
+ <font-triplet name="GulimChe" style="normal" weight="normal"/>
+</font>]]></source>
</section>
<section id="register">
<title>Register Fonts with FOP</title>