Skip to content

Documentation / @finchart/core / index / TextMetricsLike

Interface: TextMetricsLike ​

Defined in: packages/core/src/render/types.ts:69

The part of what measureText returns that core reads. Filling in width alone is still a valid implementation — without a vertical box, it falls to the font string's px (textHeight). A real TextMetrics satisfies this shape, so it can be returned as-is.

Properties ​

fontBoundingBoxAscent? ​

readonly optional fontBoundingBoxAscent?: number

Defined in: packages/core/src/render/types.ts:71


fontBoundingBoxDescent? ​

readonly optional fontBoundingBoxDescent?: number

Defined in: packages/core/src/render/types.ts:72


width ​

readonly width: number

Defined in: packages/core/src/render/types.ts:70