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#
| Parameter | Type |
|---|---|
bytes | Uint8Array |