Skip to content
pixi-silk
GitHub repository
Interface

FontTables

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

The tables of a TrueType font a run sprite needs.

Properties#

PropertyTypeDescriptionDefined in
ascendernumberAscender in font units (hhea).packages/pixi-silk/src/i18n/kb/font.ts:17
descendernumberDescender in font units, negative (hhea).packages/pixi-silk/src/i18n/kb/font.ts:19
numGlyphsnumberNumber of glyphs (maxp).packages/pixi-silk/src/i18n/kb/font.ts:15
unitsPerEmnumberUnits per em (head).packages/pixi-silk/src/i18n/kb/font.ts:13

Methods#

outline()#

outline(glyph: number): Contour[];

The outline of a glyph, as flattened contours. Empty for a space or a missing glyph.

Parameters#

ParameterType
glyphnumber

Returns#

Contour[]