Skip to content
pixi-silk
GitHub repository
Function

readFont

import { readFont } from 'pixi-silk/i18n/shaper';
function readFont(bytes: Uint8Array): FontTables;

Reads the outlines of a TrueType (glyf) font. CFF fonts (.otf with a CFF table) have no glyf table and throw, as do font collections.

Parameters#

ParameterType
bytesUint8Array

Returns#

FontTables