aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Berger <maxberger@apache.org>2007-12-10 13:35:33 +0000
committerMaximilian Berger <maxberger@apache.org>2007-12-10 13:35:33 +0000
commit3ad1cf6d677d963b63f89a01114a4f8de176bd2b (patch)
treec8fa28216a4ed1118392607c87debab150bd4e74 /src
parent010d536e11b3c1107377d8e35c1509ba45ea2ad2 (diff)
downloadxmlgraphics-fop-3ad1cf6d677d963b63f89a01114a4f8de176bd2b.tar.gz
xmlgraphics-fop-3ad1cf6d677d963b63f89a01114a4f8de176bd2b.zip
Added documentation for font-in-jar-files
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@602898 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/documentation/content/xdocs/trunk/fonts.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/trunk/fonts.xml b/src/documentation/content/xdocs/trunk/fonts.xml
index 14f210a79..7d90f757e 100644
--- a/src/documentation/content/xdocs/trunk/fonts.xml
+++ b/src/documentation/content/xdocs/trunk/fonts.xml
@@ -25,6 +25,7 @@
<person name="Jeremias Märki" email=""/>
<person name="Tore Engvig" email=""/>
<person name="Adrian Cumiskey" email=""/>
+ <person name="Max Berger" email=""/>
</authors>
</header>
<body>
@@ -302,6 +303,16 @@ It will display all of the font names and exit with an Exception.</p>
</ul>
<!--note>Cocoon users will need to setup the config, see FOPSerializer for more information.</note-->
</section>
+ <section id="autodetect">
+ <title>Auto-Detect and auto-embedd feature</title>
+ <p>When the "auto-detect" flag is set in the configuration, FOP will automatically search for fonts in the default paths for your operating system.</p>
+ <p>FOP will also auto-detect fonts which are available in the classpath, if they are described as "application/x-font" in the MANIFEST.MF file. For example, if your .jar file contains font/myfont.ttf:</p>
+ <source>Manifest-Version: 1.0
+
+Name: font/myfont.ttf
+Content-Type: application/x-font</source>
+ <p>This feature allows you to create JAR files containing fonts. The JAR files can be added to fop by providem them in the classpath, e.g. copying them into the lib/ directory.</p>
+ </section>
<section id="embedding">
<title>Embedding</title>
<note>The PostScript renderer does not yet support TrueType fonts, but can embed Type 1 fonts.</note>