Unit: PDFium
function AddVerticalShapedText(const Shaped: TPdfShapedText; FontName: string; FontSize, X, TopY: Double; Color: TColor = clBlack; ColorAlpha: Byte = $FF): Integer; overload;
function AddVerticalShapedText(const Shaped: TPdfShapedText; FontName: string; FontSize, X, TopY, ExtraAdvance: Double; Color: TColor = clBlack; ColorAlpha: Byte = $FF): Integer; overload;
function AddVerticalShapedText(const Text: WString; FontName: string; FontSize, X, TopY: Double; Color: TColor = clBlack; ColorAlpha: Byte = $FF; const ScriptTag: AnsiString = ''; const LanguageTag: AnsiString = ''): Integer; overload;
Lays a shaped run down one vertical column, consuming the shaper's top-to-bottom advances and vertical glyph forms
Remarks
- The shaping backend must report
SupportsVerticalShaping: the HarfBuzz backend does, while the Windows Uniscribe backend reports none and the call is refused instead of falling back to a horizontal run
- Every glyph becomes one translated text object, because the native per-glyph position array only offsets along the baseline; a run is limited to 4096 glyphs for that reason
- Each object carries a Span
ActualText with its cluster's logical text, so extraction follows the reading order rather than the per-object drawing order
- The prepared overload emits a shape the caller already produced, for example a run the caller shaped to reuse its glyph advances
- The
ExtraAdvance overload inserts that many points after every glyph, which is how a caller spreads a short column to a fixed height; the trailing space after the final glyph belongs to the column box
- This writes a single column; paragraph-level column progression and line breaking between columns stay with the caller
See Also