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
| Index | Object |
|---|---|
| 0 | Normal appearance Form XObject |
| 1 | Type0 font with Identity-H and ToUnicode |
| 2 | CIDFontType2 with exact widths and CIDToGIDMap |
| 3 | Font descriptor with actual name, bounds and vertical metrics |
| 4 | Full original FontFile2 bytes |
| 5 | ToUnicode CMap with scalar-to-UTF-16 mappings |
| 6 | Explicit 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 the 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 every object that remains 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