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?
readonlyoptionalfontBoundingBoxAscent?:number
Defined in: packages/core/src/render/types.ts:71
fontBoundingBoxDescent?
readonlyoptionalfontBoundingBoxDescent?:number
Defined in: packages/core/src/render/types.ts:72
width
readonlywidth:number
Defined in: packages/core/src/render/types.ts:70