THPDFPage.TextOut Method

 

THPDFPage.TextOut

THPDFPage

 

Вгору  Попередня  Наступна

Prints text using the currently selected font.

 

Delphi syntax:

procedure TextOut ( X, Y: Single; Angle: Extended; Text: AnsiString);

 

C++ syntax:

void __fastcall PrintText ( float X, float Y, Extended Angle, AnsiString Text);

 

Description:

This procedure prints a text line Text from point X, Y using orientation Angle in degrees.

 

Для вбудованих fonts із підтримкою Unicode поточна реалізація визначає glyph IDs і widths з active font перед записом PDF text operators Це покращує consistency, коли один document переглядається у різних PDF readers

 

Якщо перевіряється фактичний font output, спочатку викличте SetFont для target face і використайте THotPDF.FontEmbedding = true разом із THotPDF.StandardFontEmulation = false

 

Code Example

HPDF.FontEmbedding := true;
HPDF.StandardFontEmulation := false;
HPDF.CurrentPage.SetFont( 'Calibri', [], 12 );
HPDF.CurrentPage.TextOut( 150, 200, 0, 'Using the TextOut method' );

 

See also: SetFont, UnicodeTextOut.