THPDFPage.UnicodeTextOut

THPDFPage

 

Üst  Önceki  Sonraki

Shows text represented by a Unicode string or buffer

 

This procedure is retained for backward compatibility and shares the current TextOut font pipeline. Use it when existing code already passes WideString or UTF-16 buffers

 

Delphi syntax:

procedure UnicodeTextOut( X, Y: Single; Angle: Extended; Text: PWORD; TextLength: Integer ); overload;

procedure UnicodeTextOut( X, Y: Single; Angle: Extended; Text: WideString ); overload;

 

Description:

This procedure prints a text line represented by a Unicode buffer ( Text: PWORD, TextLength: Integer ) or Unicode string ( Text: WideString ) from point X, Y using orientation Angle in degrees

 

Gömülü Unicode yazı tipleri için HotPDF artık yazı tipi değiştiğinde glif durumunu yeniler, etkin Windows yazı tipinden glif kimliklerini çözer ve oluşturulan PDF için eşleşen ToUnicode verilerini yazar. Bu, Calibri gibi gömülü yazı tiplerinde görüntüleyiciler arası işlemeyi iyileştirir

 

Etkin yazı tipi önce RegisterUnicodeTTF ile yüklenmişse U+1F600 gibi ek düzlem Unicode karakterleri yazı tipinin cmap format 12 verileri üzerinden çözülür ve sayfa metin akışında tek bir dahili CID olarak üretilir. Sayfa çıktısı kayıtlı Type 0 yazı tipi kaynağını yeniden kullanır; bu nedenle sonlandırma, AcroForm Unicode görünüm akışları tarafından kullanılan aynı /CIDToGIDMap, alt yazı tipi /W, /ToUnicode ve yazı tipi alt kümesi kullanım durumunu yeniler

 

Tests\Delphi\FontTest provides a practical comparison sample for TextOut and embedded font validation

 

Code Example

HPDF.FontEmbedding := true;
HPDF.StandardFontEmulation := false;
HPDF.CurrentPage.SetFont( 'Arial Unicode MS', [], 12, 0, False );
HPDF.CurrentPage.UnicodeTextOut( 40, 100, 0, WideString('Unicode output sample') );