Skip to content

anim-format (runtime format) / textRunFont

Function: textRunFont() ​

ts
function textRunFont(base, style): TextStyle;

the effective style of a run (base font + its overrides)

Parameters ​

ParameterType
base{ align: "left" | "center" | "right" | "justify"; bold: boolean; color: string; family: string; italic: boolean; size: number; }
base.align"left" | "center" | "right" | "justify"
base.boldboolean
base.colorstring
base.familystring
base.italicboolean
base.sizenumber
styleAnimTextRunStyle | undefined

Returns ​

TextStyle

HereSplash — 2D animation for the web