Skip to content

API Reference / @gtkx/cairo / TextExtents

Type Alias: TextExtents ​

TextExtents = object

Defined in: types.d.ts:18

Extents of a run of text or glyphs in user space.

Properties ​

height ​

height: number

Defined in: types.d.ts:26

Height of the glyphs as drawn.


width ​

width: number

Defined in: types.d.ts:24

Width of the glyphs as drawn.


xAdvance ​

xAdvance: number

Defined in: types.d.ts:28

Horizontal distance to advance after drawing the glyphs.


xBearing ​

xBearing: number

Defined in: types.d.ts:20

Horizontal distance from the origin to the leftmost part of the glyphs.


yAdvance ​

yAdvance: number

Defined in: types.d.ts:30

Vertical distance to advance after drawing the glyphs.


yBearing ​

yBearing: number

Defined in: types.d.ts:22

Vertical distance from the origin to the topmost part of the glyphs.