THPDFPage.DrawEmbeddedGlyphRun Method
Draws exact glyph IDs from the current caller-owned font through an Identity Type 0 PDF font
Declaration
function DrawEmbeddedGlyphRun(
X, Y: Single;
angle: Extended;
const Glyphs: THPDFEmbeddedGlyphRun;
RightToLeft: boolean = false): boolean;
Behaviour
- Validates every glyph ID before writing any text operators
- Uses natural
hmtxadvances unless a glyph supplies an explicit advance - Emits horizontal positioning through native
TJadjustments and vertical offsets through scopedTsvalues - For RTL runs, progresses negatively and positions each origin from the glyph's natural width and horizontal offset
- Maps the first non-empty source text retained for each glyph ID into a bounded
ToUnicodeCMap - Returns false for an empty run, an unselected embedded font or an out-of-range glyph ID
Related APIs
THPDFEmbeddedGlyph · THPDFEmbeddedGlyphRun · THPDFPage.SetEmbeddedGlyphFont