|
THPDFPage.TextOut
|
傳回頂部 上一頁 下一頁 |
|
Prints text using the currently selected font.
Delphi 語法: procedure TextOut ( X, Y: Single; Angle: Extended; Text: WideString); overload; procedure TextOut ( X, Y: Single; Angle: Extended; Text: PWORD; TextLength: Integer); overload;
C++ 語法: void __fastcall TextOut ( float X, float Y, Extended Angle, WideString Text); void __fastcall TextOut ( float X, float Y, Extended Angle, WORD *Text, int TextLength);
描述: 此程序從點 X、Y 開始,以 Angle 度的方向輸出文字行 Text。PWORD overload 會從 Text 起點輸出 TextLength 個 UTF-16 code units
對 embedded Unicode-capable fonts,目前實作會在寫入 PDF text operators 前,從 active font 解析 glyph IDs 與 widths。這可改善同一檔案在不同 PDF readers 中檢視時的一致性
若要驗證實際 font output,請先為目標 face 呼叫 SetFont,並使用 THotPDF.FontEmbedding = true 搭配 THotPDF.StandardFontEmulation = false
Code Example
請參閱: SetFont, UnicodeTextOut.
|