THPDFHeadlessRichTextRun
THPDFHeadlessRichTextRun = record
Text: UnicodeString;
FontFamily: UnicodeString;
FontFamilyCandidates: THPDFHeadlessRichTextFontFamilyCandidates;
FontStyle: THPDFHeadlessRichTextFontStyle;
FontSize: Double;
LineHeightKind: THPDFHeadlessRichTextLineHeightKind;
LineHeight: Double;
LetterSpacingKind, WordSpacingKind: THPDFHeadlessRichTextSpacingKind;
LetterSpacing, WordSpacing: Double;
IsParagraphStrut: Boolean;
TextColor: array[0..2] of Double;
Underline, StrikeOut, ParagraphBreakBefore: Boolean;
Alignment: THPDFHeadlessTextAlignment;
class function Default: THPDFHeadlessRichTextRun; static;
end;
LineHeightKind defaults to hrlhLegacy; LineHeight defaults to zero, and IsParagraphStrut defaults to false
A strut has empty Text, an explicit height and the actual parent face, style and size; it must begin its paragraph and contributes real metrics without adding text to V
Explicit line-height behaviour uses shared preparation for native typed APs and RV serialisation
LetterSpacingKind and WordSpacingKind default to hrspLegacy with zero authored values; explicit points and em retain signed Double precision and use the bounded CSS spacing layout
One explicit styled text run; font sizes must be positive and colours must contain three finite components from zero through one
FontFamily selects a configured label when using the named-family APIs; an empty label selects their default family, and the existing single-family builder requires an empty label
FontFamilyCandidates optionally retains an ordered list of one through sixteen supplied-family labels for whole-grapheme fallback; Default returns an empty list, and a nonempty list requires enabled FallbackFontFamilies
ParagraphBreakBefore inserts a paragraph boundary before a run after the first; the plain V contains a carriage return at that boundary
Alignment selects the paragraph alignment on its first run, including an empty first run, and on runs with ParagraphBreakBefore; other inline runs and explicit line breaks retain that alignment