THPDFHeadlessTextAppearance

An owned bundle returned by HPDFBuildHeadlessTextAppearance or HPDFBuildHeadlessRichTextAppearance, containing actual HotPDF objects and caller-selected consecutive indirect object numbers

ObjectCount reports the actual bundle size; the table describes the seven-object plain-text bundle

IndexObject
0Normal appearance Form XObject
1Type0 font with Identity-H and ToUnicode
2CIDFontType2 with exact widths and CIDToGIDMap
3Font descriptor with actual name, bounds, and vertical metrics
4Full original FontFile2 bytes
5ToUnicode CMap with scalar-to-UTF-16 mappings
6Explicit CID-to-glyph stream

GetObject(Index) returns a borrowed object; GetObjectNumber(Index) returns its indirect number, and FirstObjectNumber identifies the Form object

EffectiveFontSize and TextWidth report the final layout using actual font advances; TextHeight reports the logical line extent from actual font metrics and final baselines, excluding padding and trailing leading

DetachObject(Index) transfers ownership of that object to the caller and clears its bundle slot; the caller must retain the associated indirect numbers and free detached objects

Destroying the bundle frees all objects that remain attached

A rich-text bundle contains an outer Form followed by seven objects per painted fragment, with actual style-font programs shared between fragments within the widget; unused font-program slots contain null objects, and callers must iterate ObjectCount rather than assuming seven objects