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 color instructions and frozen registration coordinates separately from static outlines. If complete color instancing cannot encode selected values, outline-only instancing can still register the font for native color drawing. A handled OnVariableFontInstance provider remains authoritative for both outlines and color. See selected-axis color programs and static outlines

Registers a reusable unicode ttf resource for the document creation workflow. Call it before page commands reference the resource name so color, pattern, font, image, or profile data is available in the PDF resource tree

Declaration

procedure RegisterUnicodeTTF(const FontPath: string);

Unit

HPDFDoc

Parameters

NamePurpose
FontPathInput used by RegisterUnicodeTTF

Return value

This member does not return a value

Usage notes

Related APIs