:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/TextServerManager.xml. .. _class_TextServerManager: TextServerManager ================= **Inherits:** :ref:`Object` Manager for the font and complex text layout servers. Description ----------- ``TextServerManager`` is the API backend for loading, enumeration and switching :ref:`TextServer`\ s. \ **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 ------- +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_interface` **(** :ref:`TextServer` interface **)** | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`TextServer` | :ref:`find_interface` **(** :ref:`String` name **)** |const| | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`TextServer` | :ref:`get_interface` **(** :ref:`int` idx **)** |const| | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_interface_count` **(** **)** |const| | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_interfaces` **(** **)** |const| | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`TextServer` | :ref:`get_primary_interface` **(** **)** |const| | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_interface` **(** :ref:`TextServer` interface **)** | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_primary_interface` **(** :ref:`TextServer` index **)** | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_TextServerManager_signal_interface_added: - **interface_added** **(** :ref:`StringName` interface_name **)** Emitted when a new interface has been added. ---- .. _class_TextServerManager_signal_interface_removed: - **interface_removed** **(** :ref:`StringName` interface_name **)** Emitted when an interface is removed. Method Descriptions ------------------- .. _class_TextServerManager_method_add_interface: - void **add_interface** **(** :ref:`TextServer` interface **)** Registers an :ref:`TextServer` interface. ---- .. _class_TextServerManager_method_find_interface: - :ref:`TextServer` **find_interface** **(** :ref:`String` name **)** |const| Finds an interface by its name. ---- .. _class_TextServerManager_method_get_interface: - :ref:`TextServer` **get_interface** **(** :ref:`int` idx **)** |const| Returns the interface registered at a given index. ---- .. _class_TextServerManager_method_get_interface_count: - :ref:`int` **get_interface_count** **(** **)** |const| Returns the number of interfaces currently registered. ---- .. _class_TextServerManager_method_get_interfaces: - :ref:`Array` **get_interfaces** **(** **)** |const| Returns a list of available interfaces the index and name of each interface. ---- .. _class_TextServerManager_method_get_primary_interface: - :ref:`TextServer` **get_primary_interface** **(** **)** |const| Returns the primary :ref:`TextServer` interface currently in use. ---- .. _class_TextServerManager_method_remove_interface: - void **remove_interface** **(** :ref:`TextServer` interface **)** Removes interface. All fonts and shaped text caches should be freed before removing interface. ---- .. _class_TextServerManager_method_set_primary_interface: - void **set_primary_interface** **(** :ref:`TextServer` index **)** Sets the primary :ref:`TextServer` interface. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`