class RVG · Factories

RvgTextSize

The size of a text in a style, from text.measure: its width and how far its font box reaches above and below the anchor.

Properties

ascent

ascent: number

How far the font box reaches above the anchor (positive: up), for the dominant baseline of the style.

descent

descent: number

How far the font box reaches below the anchor (positive: down), for the dominant baseline of the style.

width

width: number

The advance width of the text, letter-spacing included.