API Reference / @gtkx/cairo / TextExtents
Type Alias: TextExtents
TextExtents =
object
Defined in: packages/cairo/src/types.ts:20
Extents of a run of text or glyphs in user space.
Properties
height
height:
number
Defined in: packages/cairo/src/types.ts:28
Height of the glyphs as drawn.
width
width:
number
Defined in: packages/cairo/src/types.ts:26
Width of the glyphs as drawn.
xAdvance
xAdvance:
number
Defined in: packages/cairo/src/types.ts:30
Horizontal distance to advance after drawing the glyphs.
xBearing
xBearing:
number
Defined in: packages/cairo/src/types.ts:22
Horizontal distance from the origin to the leftmost part of the glyphs.
yAdvance
yAdvance:
number
Defined in: packages/cairo/src/types.ts:32
Vertical distance to advance after drawing the glyphs.
yBearing
yBearing:
number
Defined in: packages/cairo/src/types.ts:24
Vertical distance from the origin to the topmost part of the glyphs.