[]
        
(Showing Draft Content)

GlyphRun

DsPdfJS API v9.1.0


DsPdfJS API / GlyphRun

Type Alias: GlyphRun

GlyphRun = object

Represents an isolated section of text with the same formatting.

Properties

advance

advance: number[]

The array of glyph advances for each code point, in graphic units.


indices

indices: number[]

The array of code point indices (not UTF-32 code points!) in the code points array returned from Layout.getCodePoints().


length

length: number

The length of the glyph run along the reading direction (the width for horizontal text), in graphic units.


offset

offset: number

The offset of the glyph run start along the reading direction (the X coordinate for horizontal text), in graphic units.


rightToLeft

rightToLeft: boolean

Indicates if the glyph run should appear from right to left. This affects how the 'offset', 'length', and 'advance' properties are applied.