1681-engine / index / TextStyle
Interface: TextStyle ​
Defined in: src/core/Text.ts:4
Properties ​
align? ​
ts
optional align?: "center" | "left" | "right";Defined in: src/core/Text.ts:12
color? ​
ts
optional color?: string;Defined in: src/core/Text.ts:7
fontFamily? ​
ts
optional fontFamily?: string;Defined in: src/core/Text.ts:5
fontSize ​
ts
fontSize: string | number;Defined in: src/core/Text.ts:6
lineSpacing? ​
ts
optional lineSpacing?: number;Defined in: src/core/Text.ts:13
resolution? ​
ts
optional resolution?: number;Defined in: src/core/Text.ts:11
Texture pixels per world pixel: world text is zoomed by the camera, so it is rasterised finer.
stroke? ​
ts
optional stroke?: string;Defined in: src/core/Text.ts:8
strokeThickness? ​
ts
optional strokeThickness?: number;Defined in: src/core/Text.ts:9
wordWrapWidth? ​
ts
optional wordWrapWidth?: number;Defined in: src/core/Text.ts:14