1681-engine / ui / RichFontOptions
Interface: RichFontOptions ​
Defined in: src/ui/rich/richFonts.ts:18
Extended by ​
Properties ​
color? ​
ts
optional color?: string;Defined in: src/ui/rich/richFonts.ts:24
The colour of text with no [color].
fontFamily ​
ts
fontFamily: string;Defined in: src/ui/rich/richFonts.ts:20
Must already be loaded (document.fonts.load), or the text measures and bakes in the fallback.
fontSize ​
ts
fontSize: number;Defined in: src/ui/rich/richFonts.ts:22
The size of text with no [size].
resolution? ​
ts
optional resolution?: number;Defined in: src/ui/rich/richFonts.ts:28
Texture pixels per pixel: text in the world is zoomed by the camera, so it is rasterised finer.
stroke? ​
ts
optional stroke?: string;Defined in: src/ui/rich/richFonts.ts:25
strokeWidth? ​
ts
optional strokeWidth?: number;Defined in: src/ui/rich/richFonts.ts:26