createShapedText
import { createShapedText } from 'pixi-silk/i18n/shaper';
function createShapedText(options: ShapedTextOptions): Promise<ShapedTextProvider>;
The shaper path for text slots (brief sec. 6.5, shaper mode). kb_text_shape shapes the value
with the font the bundle was baked from, the outlines are filled in JavaScript and a distance
transform turns them into a run sprite. Slots then match the baked text in font, shaping and
metrics on every platform, with no canvas. Pass the result as dynamicText to Silk.create.
Parameters#
| Parameter | Type |
|---|---|
options | ShapedTextOptions |
Returns#
Promise<ShapedTextProvider>