THotPDF.AcquireFontDecoderForDict Method
Private helper of THotPDF that builds or reuses the text decoder of a font dictionary that is not in a page's font resources, such as a font of a Form XObject
Declaration
function AcquireFontDecoderForDict(FontDict: THPDFDictionaryObject; const ResourceName: AnsiString; out ADecoder: THPDFFontDecoder): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FontDict | Font dictionary to decode |
ResourceName | Resource name under which the content stream selects the font with Tf |
ADecoder | Receives the decoder that maps the font's character codes to Unicode and widths |
Return value
True when a decoder could be built
Usage notes
- Decoders are kept in the loaded-font decoder cache, so a font that several forms share is decoded once