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