class_textservermanager.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/TextServerManager.xml.
  6. .. _class_TextServerManager:
  7. TextServerManager
  8. =================
  9. **Inherits:** :ref:`Object<class_Object>`
  10. Manager for the font and complex text layout servers.
  11. Description
  12. -----------
  13. ``TextServerManager`` is the API backend for loading, enumeration and switching :ref:`TextServer<class_TextServer>`\ s.
  14. \ **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.
  15. Methods
  16. -------
  17. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`add_interface<class_TextServerManager_method_add_interface>` **(** :ref:`TextServer<class_TextServer>` interface **)** |
  19. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`TextServer<class_TextServer>` | :ref:`find_interface<class_TextServerManager_method_find_interface>` **(** :ref:`String<class_String>` name **)** |const| |
  21. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`TextServer<class_TextServer>` | :ref:`get_interface<class_TextServerManager_method_get_interface>` **(** :ref:`int<class_int>` idx **)** |const| |
  23. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`int<class_int>` | :ref:`get_interface_count<class_TextServerManager_method_get_interface_count>` **(** **)** |const| |
  25. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`Array<class_Array>` | :ref:`get_interfaces<class_TextServerManager_method_get_interfaces>` **(** **)** |const| |
  27. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`TextServer<class_TextServer>` | :ref:`get_primary_interface<class_TextServerManager_method_get_primary_interface>` **(** **)** |const| |
  29. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`remove_interface<class_TextServerManager_method_remove_interface>` **(** :ref:`TextServer<class_TextServer>` interface **)** |
  31. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`set_primary_interface<class_TextServerManager_method_set_primary_interface>` **(** :ref:`TextServer<class_TextServer>` index **)** |
  33. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
  34. Signals
  35. -------
  36. .. _class_TextServerManager_signal_interface_added:
  37. - **interface_added** **(** :ref:`StringName<class_StringName>` interface_name **)**
  38. Emitted when a new interface has been added.
  39. ----
  40. .. _class_TextServerManager_signal_interface_removed:
  41. - **interface_removed** **(** :ref:`StringName<class_StringName>` interface_name **)**
  42. Emitted when an interface is removed.
  43. Method Descriptions
  44. -------------------
  45. .. _class_TextServerManager_method_add_interface:
  46. - void **add_interface** **(** :ref:`TextServer<class_TextServer>` interface **)**
  47. Registers an :ref:`TextServer<class_TextServer>` interface.
  48. ----
  49. .. _class_TextServerManager_method_find_interface:
  50. - :ref:`TextServer<class_TextServer>` **find_interface** **(** :ref:`String<class_String>` name **)** |const|
  51. Finds an interface by its name.
  52. ----
  53. .. _class_TextServerManager_method_get_interface:
  54. - :ref:`TextServer<class_TextServer>` **get_interface** **(** :ref:`int<class_int>` idx **)** |const|
  55. Returns the interface registered at a given index.
  56. ----
  57. .. _class_TextServerManager_method_get_interface_count:
  58. - :ref:`int<class_int>` **get_interface_count** **(** **)** |const|
  59. Returns the number of interfaces currently registered.
  60. ----
  61. .. _class_TextServerManager_method_get_interfaces:
  62. - :ref:`Array<class_Array>` **get_interfaces** **(** **)** |const|
  63. Returns a list of available interfaces the index and name of each interface.
  64. ----
  65. .. _class_TextServerManager_method_get_primary_interface:
  66. - :ref:`TextServer<class_TextServer>` **get_primary_interface** **(** **)** |const|
  67. Returns the primary :ref:`TextServer<class_TextServer>` interface currently in use.
  68. ----
  69. .. _class_TextServerManager_method_remove_interface:
  70. - void **remove_interface** **(** :ref:`TextServer<class_TextServer>` interface **)**
  71. Removes interface. All fonts and shaped text caches should be freed before removing interface.
  72. ----
  73. .. _class_TextServerManager_method_set_primary_interface:
  74. - void **set_primary_interface** **(** :ref:`TextServer<class_TextServer>` index **)**
  75. Sets the primary :ref:`TextServer<class_TextServer>` interface.
  76. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  77. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  78. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  79. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  80. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  81. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`