Skip to content

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 ​

RichFontOptions.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.

Inherited from ​

RichFontOptions.fontFamily


fontSize ​

ts
fontSize: number;

Defined in: src/ui/rich/richFonts.ts:22

The size of text with no [size].

Inherited from ​

RichFontOptions.fontSize


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 ​

RichFontOptions.resolution


stroke? ​

ts
optional stroke?: string;

Defined in: src/ui/rich/richFonts.ts:25

Inherited from ​

RichFontOptions.stroke


strokeWidth? ​

ts
optional strokeWidth?: number;

Defined in: src/ui/rich/richFonts.ts:26

Inherited from ​

RichFontOptions.strokeWidth

Released under the MIT License.