HPDFBuildHeadlessTextFamilyAppearance

function HPDFBuildHeadlessTextFamilyAppearance(const Text: UnicodeString;
  const Families: THPDFHeadlessRichTextFontFamilies;
  FirstObjectNumber, MaximumObjects: Integer;
  const Options: THPDFHeadlessTextAppearanceOptions): THPDFHeadlessTextAppearance;

Build a caller-owned plain-text appearance from one through sixteen supplied family labels and their regular TrueType font programs

With FallbackFontFamilies=False, the first family retains the strict single-font behavior; set it to True to select a complete supplied font for each Unicode grapheme, in configured family order

A uniformly resolved field retains the single-font appearance primitive; mixed plain text uses contextual font composition without creating rich-text values, and mixed-font comb text supports complex shaping as well as the existing direct scalar layout

Comb layout uses one cell per Unicode scalar, with a supplementary character using one cell and a shaped cluster covering k scalars occupying k cells; all selected fonts share the complete text's bidi cell grid, alignment, effective font size and baseline, with widget rotation and clipping retained

Each shaped cluster preserves its relative HarfBuzz advances and offsets and is centered using the combined extent of natural advance, positioned glyph origins and glyph ink; automatic sizing considers every participating cluster and the shared metric and ink height, while CharacterSpacing and WordSpacing do not affect comb positioning

One complete logical ActualText value covers the mixed shaped appearance; separate comb clusters do not promise seamless cursive joins, and extractors that ignore ActualText may return a different order or duplicate cluster text

MaximumObjects bounds the complete contiguous object range, including composed child Forms; font, object, glyph and cancellation limits remain active and aggregate font embedding includes repeated font programs

The bundle owns its objects and must be freed by its caller; consume or detach the objects before freeing it, using ObjectCount rather than assuming seven objects

Scalar family behavior and boundaries · Single-font builder