|
THPDFPage.UnicodeTextOut
|
傳回頂部 上一頁 下一頁 |
2.1102.0 版新增 一般原生 CFF2 文字與可攜式 CFF1 字型內嵌。已註冊名稱直接選取凍結的字型 byte;cmap 與 hmtx 提供 glyph 與度量,具備每字型的 BMP/SMP 對應,並以保留全部原始 glyph 槽位的 CIDFontType0C stream 呈現
|
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 語法: procedure UnicodeTextOut( X, Y: Single; Angle: Extended; Text: PWORD; TextLength: Integer ); overload; procedure UnicodeTextOut( X, Y: Single; Angle: Extended; Text: WideString ); overload;
描述: 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.
對 embedded Unicode fonts,HotPDF 現在會在 font 變更時重新整理 glyph state,從 active Windows font 解析 glyph IDs,並為產生的 PDF 寫入相符的 ToUnicode data。這會改善 Calibri 這類 embedded fonts 的 cross-viewer rendering
當 active font 已先透過 RegisterUnicodeTTF 載入時,U+1F600 這類 supplementary-plane Unicode characters 會透過 font 的 cmap format 12 data 解析,並在 page text stream 中輸出為單一 internal CID。Page output 會重用註冊的 Type 0 font resource,因此 finalization 會重新整理 AcroForm Unicode appearance streams 使用的同一組 /CIDToGIDMap、descendant font /W、/ToUnicode 與 font-subset usage state
Tests\Delphi\FontTest provides a practical comparison sample for TextOut and embedded font validation.
Code Example
|