Class reference

TextServerManager

Inherits Object

A singleton for managing TextServer implementations.

Description

TextServerManager is the API backend for loading, enumerating, and switching TextServers. Note: Switching text server at runtime is possible, but will invalidate all fonts and text buffers. Make sure to unload all controls, fonts, and themes before doing so.

Methods

TextServer get_interface(int idx) const

Returns the interface registered at a given index.

int get_interface_count() const

Returns the number of interfaces currently registered.

Dictionary[] get_interfaces() const

Returns a list of available interfaces, with the index and name of each interface.

void remove_interface(TextServer interface)

Removes an interface. All fonts and shaped text caches should be freed before removing an interface.

Signals

interface_added(StringName interface_name)

Emitted when a new interface has been added.

interface_removed(StringName interface_name)

Emitted when an interface is removed.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.