Skip to content
pixi-silk
GitHub repository
Function

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#

ParameterType
fontArrayBuffer | Uint8Array<ArrayBufferLike>
optionsKbShaperOptions

Returns#

Promise<KbShaper>