From: William Victor Mote
Windows:
+ org.apache.fop.fonts.apps.PFMReader [options] pfm-file xml-fileUnix:
-PFMReader [options]:
+TTFReader [options]:
+Issue | +WinAnsi | +CID-keyed | +
---|---|---|
Usable Character Set | +Limited to WinAnsi character set, which is roughly equivalent to iso-8889-1. | +Limited only by the characters in the font itself. | +
Character Encoding in the Output Document. | +Correct. | +Never correct. Search, index, and cut-and-paste operations in the output document +will produce incorrect results. | +
Character Display | +Correct. | +Correct if and only if the font is embedded in the output. (This is possible +because, although the underlying characters are encoded incorrectly, the embedded font is +also encoded incorreclty). | +
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 adds a prefix to the fontname to ensure that the name 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 TrueType fonts (ttf) or TrueType Collections (ttc), a subset of the original font, containing only the glyphs used, is embedded in the output document. 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 "-enc 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.
+Characters will be WinAnsi encoded (as specified in the PDF spec), so you lose the ability to use characters from other character sets. +See Table of TTF Encoding Options for more details.