Skip to content

Intermact API Reference / @intermact/core / labelContours

Function: labelContours()

labelContours(text, opts?): object

Defined in: packages/core/src/text/text-layout.ts:197

Lay out a label string into contours using a registered outline font.

Parameters

text

string

opts?

LabelOptions = {}

Returns

object

contours

contours: RawContour[]

height

height: number

width

width: number

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)