HPDFBuildHeadlessRichTextFamilyAppearance

function HPDFBuildHeadlessRichTextFamilyAppearance(
  const Runs: THPDFHeadlessRichTextRuns;
  const Families: THPDFHeadlessRichTextFontFamilies;
  FirstObjectNumber, MaximumObjects: Integer;
  const Options: THPDFHeadlessTextAppearanceOptions): THPDFHeadlessTextAppearance;

Build a caller-owned appearance using the configured family and style of every run, with the existing paragraph, wrapping, contextual shaping, bidi, rotation, decoration and mark-placement behaviour

Set Options.FallbackFontFamilies to True for bounded supplied-family fallback; selection uses whole Unicode graphemes across authored run seams and preserves actual typed sizes and colours in the appearance whilst retaining the original authored value

The returned bundle owns all generated objects; ObjectCount gives the contiguous object range, and the caller must free the bundle after consumption

Family selection, actual font loading, aggregate font bytes, run and object bounds and cancellation retain typed appearance errors and existing ownership guarantees

Named family behaviour · Single-family builder

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