Skip to content

Documentation / @finchart/core / TextMetricsLike

Interface: TextMetricsLike

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

measureText가 돌려주는 것 중 코어가 읽는 부분. 폭만 채워도 유효한 구현이다 — 세로 상자가 없으면 font 문자열의 px로 떨어진다 (textHeight). 진짜 TextMetrics는 이 형태를 만족하므로 그대로 돌려줄 수 있다.

Properties

fontBoundingBoxAscent?

readonly optional fontBoundingBoxAscent?: number

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


fontBoundingBoxDescent?

readonly optional fontBoundingBoxDescent?: number

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


width

readonly width: number

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