Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Global objectClient APIGenerated

Fonts

const Fonts: object

Defined in: client/api.d.ts:3619

Font families this client draws world text in, from TTF or OTF files a client resource ships.

register(family, faces): void

Names a font family after files this resource ships. It draws from the next frame on, for the rest of the session; registering a family again replaces its faces. Characters a face lacks draw in the game’s font. Throws, changing nothing, for a file that is missing, outside the resource, WOFF/WOFF2 or no font at all. A file that passes those checks but fails to load is logged and draws in the game’s font.

string

The name labels ask for (a TextLabel’s font), at most 64 bytes.

string | { bold?: string; boldItalic?: string; italic?: string; regular: string; }

Paths inside this resource to TTF or OTF files, at most 32 MiB each; one path is the regular face. {b} and {i} markup synthesize a face that is left out.

void