TTMSFNCGeneralPDFLibFontInitializer Class
Initializes and caches the glyph metrics, character widths, and compressed TTF data for a single font face, providing all font information needed to embed the font in a PDF file.
API unit family: TMSFNCPDFLib.General.Android
Syntax
TTMSFNCGeneralPDFLibFontInitializer = class
Properties
| Name | Description |
|---|---|
| EmbedType | Controls whether the font is embedded as a full font program or as a subset of used glyphs only. |
| IsFixedWidth | When True, the font is a fixed-pitch (monospaced) typeface. |
Methods
| Name | Description |
|---|---|
| CompressTTFData | Compresses the raw TTF font data and stores the result for later retrieval via GetTTFDataCompressed. |
| GetCharArray | Returns the complete character code array describing every glyph slot in the font. |
| GetCharWidths | Returns the per-character advance-width array for all glyphs in the font. |
| GetFontMetrics | Returns the metric record for this font face, including ascent, descent, cap height, italic angle, bounding box, and outline type. |
| GetGlyphIDs | Returns the glyph IDs corresponding to the used character array, used when embedding a font subset in the PDF file. |
| GetTTFDataCompressed | Returns the compressed TTF font data stream, ready for embedding in a PDF file. |
| GetTTFDataCompressedLength | Returns the byte length of the compressed TTF font data after CompressTTFData has been called. |
| GetTTFDataLength | Returns the byte length of the raw (uncompressed) TTF font data. |
| GetUnitsPerEm | Returns the units-per-em value for the font, used to scale font-unit measurements to point sizes. |
| GetUsedCharArray | Returns the subset of character codes actually used during PDF rendering, allowing subsetting of embedded fonts. |
| InitializeCharWidths | Populates the character width table by reading glyph advance metrics from the font file. |
| InitializeFontFile | Loads the font file into memory and prepares the TTF data stream for embedding. |