THPDFPage.TextOut Method

 

THPDFPage.TextOut

THPDFPage

 

Topo  Anterior  Seguinte

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.

 

Para tipos de letra Unicode incorporados, a implementação atual resolve IDs e larguras de glifos a partir do tipo de letra ativo antes de escrever os operadores de texto PDF. Isto melhora a consistência quando o mesmo documento é visto em diferentes leitores PDF

 

Se estiver a validar a saída real do tipo de letra, chame primeiro SetFont para a face de destino e use THotPDF.FontEmbedding = true com 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.