N

fonts

namespace fonts

Functions

F

applyPreset(id: string): Promise<UnboundFontPresetResult | undefined>

Applies a saved preset, downloading the faces it lacks.

F

clearOverride(key: string): Promise<void>

Gives a Discord family, or a group, back its own font.

F

get(id: PropertyKey): UnboundInstalledFont | undefined

Reads one installed face by id.

F

getAll(): UnboundInstalledFont[]

Lists every installed font face.

F

getPresets(): UnboundFontPreset[]

Lists the saved font presets.

F

install(input: string, variants?: UnboundFontVariant[]): Promise<UnboundFontInstallResult | undefined>

Installs a font by family name or link, optionally only some weights and styles.

F

setOverride(key: string, fontId: string): Promise<void>

Points a Discord family, or a group such as PRIMARY, at an installed face.

F

uninstall(id: string): Promise<void>

Removes an installed face by id.