Skip to content

Intermact API Reference / @intermact/core / placeString

Function: placeString()

placeString(text, x, baselineY, opts?): object

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

Place a string's glyphs starting at (x, baselineY); returns run + width.

Parameters

text

string

x

number

baselineY

number

opts?

PlaceOptions = {}

Returns

object

glyphs

glyphs: PlacedGlyph[]

width

width: number

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