HPDFBuildHeadlessRichTextAppearance

function HPDFBuildHeadlessRichTextAppearance(
  const Runs: THPDFHeadlessRichTextRuns;
  const Fonts: THPDFHeadlessRichTextFonts;
  FirstObjectNumber, MaximumObjects: Integer;
  const Options: THPDFHeadlessTextAppearanceOptions): THPDFHeadlessTextAppearance;

Build a caller-owned appearance bundle with actual style fonts, word fragments, common baselines, decorations, paragraph alignment and widget rotation

This source-compatible single-family entry point requires empty run FontFamily labels; use HPDFBuildHeadlessRichTextFamilyAppearance for explicitly named families

ObjectCount supplies the full bundle size; object zero is the outer Form XObject and subsequent objects contain referenced fragment forms and fonts

MaximumObjects bounds the contiguous object range before fragment construction; the builder also enforces the existing font, object-byte, glyph and cancellation limits

Border paints a rectangle or circle before clipping, and HighlightLine and HighlightLines paint actual measured multiline row backgrounds

Marks across styles use actual GPOS base, ligature and mark anchors from the supplied style fonts and their individual point sizes; child forms retain negative-origin glyph outlines inside the owning widget clip

Directional embeddings, overrides, isolates and paired brackets retain complete logical paragraph context across automatic wrapping; cached paragraph levels are reordered for each physical line, then each style item uses actual surrounding line text for native shaping

Paragraph-derived line order · Cached line reordering · Ordered contextual shaping

Native rich-text field behavior · Document API

OpenType CFF 1 fonts are supported through the compact font appearance backend, preserving the full font, actual CID mapping, Unicode text, widths, and embedding policy