mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch (bd2300d)
This commit is contained in:
@@ -23,6 +23,23 @@ Description
|
||||
|
||||
**TextServer** is the API backend for managing fonts and rendering text.
|
||||
|
||||
\ **Note:** This is a low-level API, consider using :ref:`TextLine<class_TextLine>`, :ref:`TextParagraph<class_TextParagraph>`, and :ref:`Font<class_Font>` classes instead.
|
||||
|
||||
This is an abstract class, so to get the currently active **TextServer** instance, use the following code:
|
||||
|
||||
|
||||
.. tabs::
|
||||
|
||||
.. code-tab:: gdscript
|
||||
|
||||
var ts = TextServerManager.get_primary_interface()
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
var ts = TextServerManager.GetPrimaryInterface();
|
||||
|
||||
|
||||
|
||||
.. rst-class:: classref-reftable-group
|
||||
|
||||
Methods
|
||||
|
||||
Reference in New Issue
Block a user