Skip to content

Intermact API Reference / @intermact/core / shiftGlyphs

Function: shiftGlyphs()

shiftGlyphs(glyphs, dx, dy): PlacedGlyph[]

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

Translate a run's glyphs by (dx, dy) (used for alignment).

Parameters

glyphs

readonly PlacedGlyph[]

dx

number

dy

number

Returns

PlacedGlyph[]

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