|
THPDFPage.TextOut
|
Top Previous Next |
|
Prints text using the currently selected font
Delphi syntax: procedure TextOut ( X, Y: Single; Angle: Extended; Text: WideString); overload; procedure TextOut ( X, Y: Single; Angle: Extended; Text: PWORD; TextLength: Integer); overload;
C++ syntax: void __fastcall TextOut ( float X, float Y, Extended Angle, WideString Text); void __fastcall TextOut ( float X, float Y, Extended Angle, WORD *Text, int TextLength);
Description: This procedure prints a text line Text from point X, Y using orientation Angle in degrees. The PWORD overload prints TextLength UTF-16 code units starting at Text
For embedded Unicode-capable fonts, the current implementation resolves glyph IDs and widths from the active font before writing the PDF text operators. This improves consistency when the same document is viewed in different PDF readers
If you are validating actual font output, call SetFont for the target face first and use THotPDF.FontEmbedding = true with THotPDF.StandardFontEmulation = false
Code Example
See also: SetFont, UnicodeTextOut.
|