[]
DsPdfJS API / GlyphRun
GlyphRun =
object
Represents an isolated section of text with the same formatting.
advance:
number[]
The array of glyph advances for each code point, in graphic units.
indices:
number[]
The array of code point indices (not UTF-32 code points!) in the code points array returned from Layout.getCodePoints().
length:
number
The length of the glyph run along the reading direction (the width for horizontal text), in graphic units.
offset:
number
The offset of the glyph run start along the reading direction (the X coordinate for horizontal text), in graphic units.
rightToLeft:
boolean
Indicates if the glyph run should appear from right to left. This affects how the 'offset', 'length', and 'advance' properties are applied.