Skip to content
pixi-silk
GitHub repository
Interface

FontSpec

import type { FontSpec } from 'pixi-silk/text';

The font of a glyph: CSS family list, weight and style. Size does not matter, glyphs are baked at one size.

Properties#

PropertyTypeDescriptionDefined in
familystringCSS font family list, as in font-family.text/atlas.ts:7
style?stringnormal, italic or oblique. Default normal.text/atlas.ts:11
weight?string | numberCSS weight: 400, '600', 'bold'. Default 400.text/atlas.ts:9