Skip to content

Intermact API Reference / @intermact/core / setDefaultFont

Function: setDefaultFont() ​

setDefaultFont(id): void

Defined in: packages/core/src/text/font-registry.ts:119

Set the fallback font id for sync text APIs (labelContours, etc.).

Parameters ​

id ​

string

Returns ​

void

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