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.

 

بالنسبة إلى الخطوط المضمنة القادرة على Unicode، يحل التنفيذ الحالي glyph IDs والعروض من الخط النشط قبل كتابة PDF text operators. يحسن ذلك الاتساق عند عرض المستند نفسه في قارئات PDF مختلفة

 

إذا كنت تتحقق من إخراج الخط الفعلي، فاستدع SetFont للوجه الهدف أولًا واستخدم 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' );

 

انظر أيضا: SetFont, UnicodeTextOut.