THPDFPage.TextOut 메서드

 

THPDFPage.TextOut

THPDFPage

 

맨 위  이전  다음

Prints text using the currently selected font.

 

Delphi 구문:

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

 

C++ 구문:

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 Unicode-capable font의 경우 current implementation은 PDF text operator를 쓰기 전에 active font에서 glyph ID와 width를 resolve합니다. 이는 같은 document를 서로 다른 PDF reader에서 볼 때 consistency를 향상합니다

 

Actual font output을 validate하는 경우 먼저 target face에 대해 SetFont를 호출하고 THotPDF.FontEmbedding = trueTHotPDF.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.