Class PdfTrueTypeFont.Keys
Predefined keys of this dictionary.
public sealed class PdfTrueTypeFont.Keys : PdfFont.Keys
- Inheritance
-
objectPdfTrueTypeFont.Keys
Fields
- BaseFont
(Required) The PostScript name of the font. For Type 1 fonts, this is usually the value of the FontName entry in the font program; for more information. The Post-Script name of the font can be used to find the font’s definition in the consumer application or its environment. It is also the name that is used when printing to a PostScript output device.
- Encoding
(Optional) A specification of the font’s character encoding if different from its built-in encoding. The value of Encoding is either the name of a predefined encoding (MacRomanEncoding, MacExpertEncoding, or WinAnsiEncoding, as described in Appendix D) or an encoding dictionary that specifies differences from the font’s built-in encoding or from a specified predefined encoding.
- FirstChar
(Required except for the standard 14 fonts) The first character code defined in the font’s Widths array.
- FontDescriptor
(Required except for the standard 14 fonts; must be an indirect reference) A font descriptor describing the font’s metrics other than its glyph widths. Note: For the standard 14 fonts, the entries FirstChar, LastChar, Widths, and FontDescriptor must either all be present or all be absent. Ordinarily, they are absent; specifying them enables a standard font to be overridden.
- LastChar
(Required except for the standard 14 fonts) The last character code defined in the font’s Widths array.
- Name
(Required in PDF 1.0; optional otherwise) The name by which this font is referenced in the Font subdictionary of the current resource dictionary.
- Subtype
(Required) The type of font; must be TrueType for a TrueType font.
- ToUnicode
(Optional; PDF 1.2) A stream containing a CMap file that maps character codes to Unicode values.
- Type
(Required) The type of PDF object that this dictionary describes; must be Font for a font dictionary.
- Widths
(Required except for the standard 14 fonts; indirect reference preferred) An array of (LastChar - FirstChar + 1) widths, each element being the glyph width for the character code that equals FirstChar plus the array index. For character codes outside the range FirstChar to LastChar, the value of MissingWidth from the FontDescriptor entry for this font is used. The glyph widths are measured in units in which 1000 units corresponds to 1 unit in text space. These widths must be consistent with the actual widths given in the font program.