|
THPDFPage.UnicodeTextOut
|
Вгору Попередня Наступна |
|
Shows text represented by a Unicode string or buffer.
This procedure is retained for backward compatibility and shares the current TextOut font pipeline. Use it when existing code already passes WideString or UTF-16 buffers.
Delphi syntax: procedure UnicodeTextOut( X, Y: Single; Angle: Extended; Text: PWORD; TextLength: Integer ); overload; procedure UnicodeTextOut( X, Y: Single; Angle: Extended; Text: WideString ); overload;
Description: This procedure prints a text line represented by a Unicode buffer ( Text: PWORD, TextLength: Integer ) or Unicode string ( Text: WideString ) from point X, Y using orientation Angle in degrees.
Для embedded Unicode fonts HotPDF тепер refreshes glyph state, коли font змінюється, визначає glyph IDs з active Windows font і записує matching ToUnicode data для generated PDF Це покращує rendering у різних viewers для embedded fonts на кшталт Calibri
Коли active font спочатку loaded through RegisterUnicodeTTF, supplementary-plane Unicode characters на кшталт U+1F600 resolve через cmap format 12 font і emit as one internal CID у page text stream Finalization accordingly refreshes /CIDToGIDMap, descendant font /W, /ToUnicode і subset data
Tests\Delphi\FontTest provides a practical comparison sample for TextOut and embedded font validation.
Code Example
|