Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
Table of contents
-
func add_interface(interface: TextServer) -> void -
const func find_interface(name: String) -> TextServer -
const func get_interface(idx: int) -> TextServer -
const func get_interface_count() -> int -
const func get_interfaces() -> Dictionary[] -
const func get_primary_interface() -> TextServer -
func remove_interface(interface: TextServer) -> void -
func set_primary_interface(index: TextServer) -> void -
signal interface_added(interface_name: StringName) -
signal interface_removed(interface_name: StringName)
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.