THotPDF.RegisterUnicodeTTF Method
Version 2.1102.0 adds ordinary native CFF2 text and portable CFF1 font embedding. Registered names select the frozen font bytes directly; cmap and hmtx supply glyphs and metrics, with per-font BMP/SMP mappings and a CIDFontType0C stream retaining all original glyph slots
Internally instantiated variable COLR fonts retain original colour instructions and frozen registration coordinates separately from static outlines. If complete colour instancing cannot encode selected values, outline-only instancing can still register the font for native colour drawing. A handled OnVariableFontInstance provider remains authoritative for both outlines and colour. See selected-axis colour programmes and static outlines
Registers a reusable unicode ttf resource for the document creation workflow. Call it before page commands reference the resource name so colour, pattern, font, image or profile data is available in the PDF resource tree
Declaration
procedure RegisterUnicodeTTF(const FontPath: string);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FontPath | Input used by RegisterUnicodeTTF |
Return value
This member does not return a value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field, or catalogue object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised