1681-engine / ui / BitmapRichFontOptions
Interface: BitmapRichFontOptions ​
Defined in: src/ui/rich/richFonts.ts:105
Extends ​
Properties ​
color? ​
ts
optional color?: string;Defined in: src/ui/rich/richFonts.ts:24
The colour of text with no [color].
Inherited from ​
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.
Inherited from ​
fontSize ​
ts
fontSize: number;Defined in: src/ui/rich/richFonts.ts:22
The size of text with no [size].
Inherited from ​
glyphs? ​
ts
optional glyphs?: string;Defined in: src/ui/rich/richFonts.ts:107
Letters beyond ASCII the text prints (see installLabelFont).
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.
Inherited from ​
stroke? ​
ts
optional stroke?: string;Defined in: src/ui/rich/richFonts.ts:25
Inherited from ​
strokeWidth? ​
ts
optional strokeWidth?: number;Defined in: src/ui/rich/richFonts.ts:26