|
THPDFPage.RtLTextOut
|
Top |
|
Outputs mixed right-to-left text with paired-bracket direction resolution and contextual mirroring
Delphi syntax: procedure RtLTextOut(X, Y: Single; angle: Extended; Text: WideString); overload; procedure RtLTextOut(X, Y: Single; angle: Extended; Text: PWORD; TextLength: Integer); overload;
Description Outputs right-to-left text onto the PDF page at the specified coordinates and angle Paired brackets resolve from the strong scripts inside the pair and the preceding strong context, following the UAX #9 N0 rule for an RTL paragraph Bracket, arrow, relation, and set-operator glyphs are mirrored only when their resolved run is RTL, so an embedded Latin expression retains its normal symbols while surrounding Arabic, Hebrew, Syriac, N'Ko, Adlam, and Hanifi Rohingya context receives the RTL form LTR subruns reverse by grapheme-like clusters, preserving UTF-16 surrogate pairs and keeping combining marks attached to their base; hexadecimal runs declared as glyph IDs are reordered without interpreting GID values as Unicode punctuation
|