Inheritance #

Table of contents

TextServerManager #

is_instantiable, core, not_builtin_classes, singleton

A singleton for managing TextServer implementations.

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.

Members #

Methods #

func add_interface(interface: TextServer) -> void#

Registers a TextServer interface.

const func find_interface(name: String) -> TextServer#

Finds an interface by its name.

const func get_interface(idx: int) -> TextServer#

Returns the interface registered at a given index.

const func get_interface_count() -> int#

Returns the number of interfaces currently registered.

const func get_interfaces() -> Dictionary[]#

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

const func get_primary_interface() -> TextServer#

Returns the primary TextServer interface currently in use.

func remove_interface(interface: TextServer) -> void#

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

func set_primary_interface(index: TextServer) -> void#

Sets the primary TextServer interface.

Annotations #

Constants #

Constructors #

Enums #

Operators #

Signals #

signal interface_added(interface_name: StringName)#

Emitted when a new interface has been added.

signal interface_removed(interface_name: StringName)#

Emitted when an interface is removed.

Theme Items #

Tutorials #