Contextual headless rich text

Typed native rich appearances preserve complete Unicode joining context across adjacent font, color and empty style runs while retaining exact logical V and canonical RV values

Fitting still uses complete Unicode word and grapheme boundaries; the final pass shapes each selected style item within its actual physical line and places items according to paragraph direction and embedding levels

Arabic initial, medial and final forms retain surrounding letters across style seams, mixed Latin and RTL items keep their visual order, and Hebrew italic styles use the actual caller-supplied italic and bold-italic font programs

Wrapped physical lines retain the direction inferred from the original logical paragraph; joining context ends at the physical line boundary

Each child appearance retains its own genuine font, point size, color, CID glyph map, ToUnicode, logical ActualText and positioned glyph program; the parent applies visual item coordinates without changing object ownership or logical rich styles

The existing character spacing, word spacing, line alignment, metrics, font permissions, object budgets, cancellation and transactional field update rules remain applicable

Cross-font combining mark anchors and explicit embedding controls spanning physical lines are implemented: GPOS base, ligature and mark attachment with independent font scales arrived in 2.899.0, paragraph-derived physical-line ordering preserves embeddings, overrides, isolates and paired brackets across wrapped rich lines since 2.903.0, and selected glyph-header bounds with canonical combining classes supply the fallback when anchors are absent since 2.906.0

Broader XHTML/CSS layout remains separate active work; mark fallback stays inside the supplied-font contract without automatic font-family reconstruction, and unhinted outlines keep design-coordinate anchors without device-specific adjustments

Rich Text Marks Across Styles · HPDFResolveHeadlessTextLineOrder cover the attachment and line-ordering contracts; the HeadlessRichBidiLines regression records the wrapped-line evidence

See HPDFShapeHeadlessTextSpan and HPDFResolveHeadlessTextOrder for the reusable native APIs