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

NameTypeAccessDescription
addr: ContentAddrReadGets the addr.
font: TextFontReadThe font active when this glyph was shown (for re-encoding on replace).
quad: [number, number, number, number]ReadDevice-space axis box [x0,y0,x1,y1]: x from the pen span, y from baseline..baseline+size.
fontSize: numberReadEffective font size in device units (quad height: fontSize * CTM vscale).
angle: numberReadBaseline angle in radians: atan2 of the text→device matrix x-basis.
text: stringReadGets the text.
elementIndex: numberReadIndex within a TJ array element list; 0 for Tj/’/".
byteStart: numberReadThis glyph’s code offset/length within its show string.
byteLen: numberReadGets the byte len.
advance: numberReadGlyph-space advance along the writing direction (em units), font size and char/word spacing folded in, CTM/hscale divided out.
vertical: booleanReadTrue 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: numberReadThe innermost active marked-content MCID when this glyph was drawn, or undefined outside any MCID-bearing marked-content sequence.
artifact: booleanReadTrue when this glyph was drawn inside an /Artifact marked-content scope.
color: RgbReadThe fill colour in force when this glyph was shown, RGB 0..255.