createKbShaper
import { createKbShaper } from 'pixi-silk/i18n/shaper';
function createKbShaper(font: ArrayBuffer | Uint8Array<ArrayBufferLike>, options?: KbShaperOptions): Promise<KbShaper>;
Loads kb_text_shape and a TrueType font into a KbShaper.
Parameters#
| Parameter | Type |
|---|---|
font | ArrayBuffer | Uint8Array<ArrayBufferLike> |
options | KbShaperOptions |
Returns#
Promise<KbShaper>