buildTextOptions
buildTextOptions(
text,style,bitmap,resolution):object
Defined in: renderer/src/internal/textConstruction.ts:17
Internal
Build the shared Text / BitmapText constructor options and pick the
Pixi class for both TextComponent and UIText. bitmap selects
BitmapText; the object form folds the font name / size into the style.
resolution is forwarded only to canvas Text — BitmapText resolution
is fixed at font-bake time (Pixi v8 warns if you set it per-instance), so
use installBitmapFont({ resolution }).
Centralised so the two text classes can’t drift on the Pixi-v8 resolution-gating rule.
Parameters
Section titled “Parameters”string
TextStyleOptions | undefined
bitmap
Section titled “bitmap”BitmapTextOption | undefined
resolution
Section titled “resolution”number | undefined
Returns
Section titled “Returns”object
bitmap
Section titled “bitmap”bitmap:
boolean
options
Section titled “options”options:
TextOptions