From 4276baf888c89035b68c7b7479e15f6a83a1bcdc Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Thu, 10 Jul 2003 16:59:29 +0000 Subject: [PATCH] 1. move "embedding" section under "custom" 2. some minor cleanup git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196677 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/fonts.xml | 28 ++++++++++++----------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/documentation/content/xdocs/fonts.xml b/src/documentation/content/xdocs/fonts.xml index b403a4e9f..f2ec00952 100644 --- a/src/documentation/content/xdocs/fonts.xml +++ b/src/documentation/content/xdocs/fonts.xml @@ -19,7 +19,7 @@ Base-14 AWT/OS Custom - Embedding + Custom Embedding PDF @@ -133,7 +133,9 @@ The constructed values however appear to have no visible influence.
TrueType Font Metrics -

FOP includes a tool that can generate an appropriate font metrics file from your TrueType font file. To create such a file in Windows from the TrueType font at c:\myfonts\cmr10.ttf:

+

FOP includes TTFReader, which reads the TTF file and generates an appropriate font metrics file for it. +Use it in a similar manner to PFMReader. +For example, to create such a metcis file in Windows from the TrueType font at c:\myfonts\cmr10.ttf:

java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar; lib\xercesImpl.jar;lib\xalan.jar org.apache.fop.fonts.apps.TTFReader @@ -141,7 +143,7 @@ The constructed values however appear to have no visible influence.
TrueType Collections Font Metrics -

TrueType collections (.ttc files) contains more than one font. +

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.

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). It will display all of the font names and exit with an Exception.

@@ -167,23 +169,23 @@ Relative URLs are resolved relative to the fontBaseDir property (or baseDir) if Cocoon users will need to setup the config, see FOPSerializer for more information.
- -
- Embedding fonts - The PostScript renderer does not yet support font embedding. - The font is simply embedded into the PDF file, it is not converted. -

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

+ Embedding + The PostScript renderer does not yet support font embedding. + The font is simply embedded into the PDF file, it is not converted. +

Font embedding is enabled in the userconfig.xml file and controlled by the embed-file attribute. If you don't specify the embed-file attribute the font will not be embedded, but will only be referenced.

-

When FOP embeds a font, it scrambles its fontname by inserting a prefix that ensures that the fontname will not match the fontname of an installed font. +

When FOP embeds a font, it scrambles its fontname by inserting a prefix that ensures that the fontname will not match the fontname of an installed font. This is helpful with older versions of Acrobat Reader that preferred installed fonts over embedded fonts.

-

When embedding PostScript fonts, the entire font is always embedded.

-

When embedding TrueType fonts (ttf) or TrueType Collections (ttc), a new font, containing only the glyphs used, is created from the original font and embedded in the pdf. +

When embedding PostScript fonts, the entire font is always embedded.

+

When embedding TrueType fonts (ttf) or TrueType Collections (ttc), a new font, containing only the glyphs used, is created from the original font and embedded in the pdf. Currently, this embedded font contains only the minimum data needed to be embedded in a pdf document, and does not contain any codepage information. The PDF document contains indexes to the glyphs in the font instead of to encoded characters. While the document will be displayed correctly, the net effect of this is that searching, indexing, and cut-and-paste will not work properly.

-

One workaround for this behavior is to use the -ansi option when generating metrics with TTFReader. +

One workaround for this behavior is to use the -ansi option when generating metrics with TTFReader. This will cause the whole font to be embedded in the pdf document. Characters will be WinAnsi encoded (as specified in the PDF spec), so you lose the ability to use characters from other character sets.

+
-- 2.39.5