Interface

Gjsgjs/cairodefaultTextExtents

Describes the metrics of a string of text

interface TextExtents {
    height: number;
    width: number;
    xAdvance: number;
    xBearing: number;
    yAdvance: number;
    yBearing: number;
}
Index

Properties

height: number

The height of the text

width: number

The width of the text

xAdvance: number

The distance to advance horizontally after drawing the text

xBearing: number

The horizontal distance from the origin to the leftmost part of the text

yAdvance: number

The distance to advance vertically after drawing the text

yBearing: number

The vertical distance from the origin to the topmost part of the text