Skip to content
pixi-silk
GitHub repository
Interface

DynamicTextMode

import type { DynamicTextMode } from 'pixi-silk/i18n/pixi';

The built-in dynamic text modes of SilkOptions.dynamicText.

Properties#

PropertyTypeDescriptionDefined in
font?| { family: string; source: string; weight?: number; } | "system"Font of the canvas mode. Default system, nothing to download.packages/pixi-silk/src/i18n/pixi/silk.ts:81
mode"off" | "canvas"canvas loads pixi-silk/i18n/canvas on first use. off draws nothing in text slots.packages/pixi-silk/src/i18n/pixi/silk.ts:79