From 1f9826c9c9735bc43ba03be9f48665e01ac4e460 Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Tue, 15 Apr 2003 17:30:58 +0000 Subject: [PATCH] Add section ids. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196270 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/fonts.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/documentation/content/xdocs/fonts.xml b/src/documentation/content/xdocs/fonts.xml index 938a88582..c8b364189 100644 --- a/src/documentation/content/xdocs/fonts.xml +++ b/src/documentation/content/xdocs/fonts.xml @@ -11,7 +11,7 @@ -
+
Important

The information on this page applies primarily to the PDF renderer. The PostScript renderer also supports custom fonts but doesn't support font embedding, yet. This page does @@ -20,7 +20,7 @@ driver of your operating system that decides if a font is embedded when using the AWT renderer.

-
+
Status

FOP (building PDF files) normally supports only the base 14 font package defined in the Adobe PDF specification. That includes the following fonts: Helvetica, Times, Courier, Symbol and ZapfDingbats. @@ -36,12 +36,12 @@ The font is simply embedded into the PDF file, it is not converted.

-
+
Adding Type 1 fonts

As mentioned above you need an XML file containing font metrics to be able to use an additional font. FOP contains a tool that can generate such a font metrics file from a PFM file, which normally comes with the font file.

-
+
Generating a font metrics file

Run the class org.apache.fop.fonts.apps.PFMReader to generate the XML file.

@@ -70,7 +70,7 @@ java -cp build/fop.jar:lib/avalon-framework.jar:lib/xml-apis.jar: appear to have no visible influence.
-
+
Register the fonts within FOP

Edit conf/userconfig.xml and add entries for the font @@ -101,13 +101,13 @@ java -cp build/fop.jar:lib/avalon-framework.jar:lib/xml-apis.jar:

-
+
Adding TrueType Fonts

Adding TrueType fonts is almost identical to the process of adding Type 1 fonts. The main difference is in the first step.

-
+
Generating a font metrics file

As mentioned above you need an XML file containing font metrics to be able to use an additional font. FOP contains @@ -125,7 +125,7 @@ java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar; C:\myfonts\cmr10.ttf C:\myfonts\cmr10.ttf ttfcm.xml

-
+
TrueType collections

TrueType collections (.ttc files) contains more than one @@ -150,7 +150,7 @@ java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;

-
+
Register the fonts within FOP

Similiar to Type 1 fonts. @@ -162,7 +162,7 @@ java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;

-
+
Embedding fonts

Font embedding is enabled in the userconfig.xml file and controlled by the embed-file attribute. -- 2.39.5