Object Building Guidelines
Font Data
Overview
This object holds an entire outline font file. It is used for storing (embedding) D-Type, TrueType, OpenType, Type 1, PostScript Type 3 or Bare CFF fonts in the document.Designated Rendering Function: NONE
Links
None
Properties
pdFontDataFormat (1070) PD_WORD_SIGNED
Font format.
Supported values:
0 = D-Type Font Format (.dtf)
1 = TrueType or OpenType with TrueType outlines (.ttf) or TrueType Collection (.ttc) [Apple Mac ASCII Encoding]
3 = TrueType or OpenType with TrueType outlines (.ttf) or TrueType Collection (.ttc) [Windows Unicode Encoding]
6 = OpenType (.otf) containing Type 2/CFF outlines [Apple Mac ASCII Encoding]
5 = OpenType (.otf) containing Type 2/CFF outlines [Windows Unicode Encoding]
2 = Adobe Type 1 (.pfb or .pfa) [Adobe Standard Encoding]
7 = Adobe Type 1 (.pfb or .pfa) [ISO Latin Encoding]
8 = Adobe Type 1 (.pfb or .pfa) [Synthesized Windows Unicode Encoding]
11 = Adobe Type 3 PostScript (.ps) [ISO Latin Encoding] - must obey D-Type's strict parsing rules
12 = Adobe Type 3 PostScript (.ps) [Synthesized Windows Unicode Encoding] - must obey D-Type's strict parsing rules
14 = Bare CFF (.cff) [Adobe Standard Encoding]
15 = Bare CFF (.cff) [ISO Latin Encoding]
16 = Bare CFF (.cff) [Synthesized Windows Unicode Encoding]
All the above values are inherited from D-Type Standard Engine. See D-Type Standard Engine Manual for more details.
pdFontDataBytes (1071) PD_HEX
Font file.
pdFontDataNumber (1072) PD_WORD_SIGNED
Font collection number.
Some font files are actually font collections (e.g. D-Type or TrueType Collections) which contain multiple fonts in the same file. Font collection number identifies a font in the font collection. Set the font collection number to 0 to open the first font in the collection. If this value is too large, the font will not open.
pdFontDataHinting (1098) PD_BYTE_UNSIGNED
Font Hinting.
Tells the engine whether to apply hinting to the font. Hinted fonts typically produce better looking and sharper output, however they are somewhat slower to process than non-hinted fonts (especially if they contain many complex glyphs such as in Chinese/Japanese/Korean fonts).
Supported values:
0 = don't apply hinting to the font
1 = apply native hinting when available, otherwise apply auto-hinting to the font
2 = apply auto-hinting to the font
3 = apply native hinting when available, otherwise apply compact auto-hinting
4 = apply compact auto-hinting exclusively
All the above values are inherited from D-Type Standard Engine. See D-Type Standard Engine Manual for more details.
pdFontDataCaching (1099) PD_BYTE_UNSIGNED
Font Caching.
Tells the engine how to cache the font. This parameter will be described more thoroughly in the future. For now, set this parameter to 0 which identifies a standard caching scheme. This caching scheme ensures a good performance with all supported font formats.