|
THPDFPage.UnicodeTextOut
|
Top Previous Next |
Version 2.1102.0 adds ordinary native CFF2 text and portable CFF1 font embedding. Registered names select the frozen font bytes directly; cmap and hmtx supply glyphs and metrics, with per-font BMP/SMP mappings and a CIDFontType0C stream retaining all original glyph slots
|
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.
For embedded Unicode fonts, HotPDF now refreshes glyph state when the font changes, resolves glyph IDs from the active Windows font, and writes matching ToUnicode data for the generated PDF. This improves cross-viewer rendering for embedded fonts such as Calibri.
When the active font has first been loaded with
Tests\Delphi\FontTest provides a practical comparison sample for TextOut and embedded font validation.
Code Example
|