GlyphEvent
Overview
GlyphEvent is a interface in Aspose.PDF FOSS for TypeScript.
A positioned glyph with provenance back to the operator that drew it.
Properties: addr, advance, angle, artifact, byteLen, byteStart, and 8 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
addr | : ContentAddr | Read | Gets the addr. |
font | : TextFont | Read | The font active when this glyph was shown (for re-encoding on replace). |
quad | : [number, number, number, number] | Read | Device-space axis box [x0,y0,x1,y1]: x from the pen span, y from baseline..baseline+size. |
fontSize | : number | Read | Effective font size in device units (quad height: fontSize * CTM vscale). |
angle | : number | Read | Baseline angle in radians: atan2 of the text→device matrix x-basis. |
text | : string | Read | Gets the text. |
elementIndex | : number | Read | Index within a TJ array element list; 0 for Tj/’/". |
byteStart | : number | Read | This glyph’s code offset/length within its show string. |
byteLen | : number | Read | Gets the byte len. |
advance | : number | Read | Glyph-space advance along the writing direction (em units), font size and char/word spacing folded in, CTM/hscale divided out. |
vertical | : boolean | Read | True when the font’s CMap is /WMode 1: the glyph advances down the page, and quad is the cell it occupies rather than a baseline-anchored box. |
mcid | : number | Read | The innermost active marked-content MCID when this glyph was drawn, or undefined outside any MCID-bearing marked-content sequence. |
artifact | : boolean | Read | True when this glyph was drawn inside an /Artifact marked-content scope. |
color | : Rgb | Read | The fill colour in force when this glyph was shown, RGB 0..255. |