THPDFPage.TextOut Method

 

THPDFPage.TextOut

THPDFPage

 

ด้านบน  ก่อนหน้า  ถัดไป

พิมพ์ข้อความโดยใช้ฟอนต์ที่เลือกในปัจจุบัน

 

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.

 

สำหรับ embedded fonts ที่รองรับ Unicode implementation ปัจจุบัน resolve glyph IDs และ widths จาก font ที่ active ก่อนเขียน PDF text operators วิธีนี้เพิ่มความสม่ำเสมอเมื่อดูเอกสารเดียวกันใน PDF readers ต่าง ๆ

 

หากกำลัง validate output font จริง ให้เรียก SetFont สำหรับ 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.