Skip to content

@bloopjs/toodle


@bloopjs/toodle / text/shaping / shapeText

Function: shapeText() ​

shapeText(font, text, blockSize, fontSize, formatting, textArray, initialFloatOffset, debug): void

Defined in: text/shaping.ts:41

Parameters ​

font ​

MsdfFont

text ​

string

blockSize ​

Size

fontSize ​

number

formatting ​

TextFormatting

textArray ​

Float32Array

initialFloatOffset ​

number = 0

debug ​

boolean = false

Returns ​

void