diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-05-15 12:45:24 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-05-15 13:58:42 +0300 |
commit | cfb9639fc3e9337b14e9b30b135f44edb6a700ea (patch) | |
tree | 0f02a124797b484955cd113c99a89a9c7dfe60c9 | |
parent | 51cb2df1f608ed8dde615eff834b98ee233504d4 (diff) | |
download | redot-engine-cfb9639fc3e9337b14e9b30b135f44edb6a700ea.tar.gz |
[TextServer] Add notes about high level text/font classes and getting active server instance.
-rw-r--r-- | doc/classes/TextServer.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 7579a3938f..34137a18ef 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -5,6 +5,16 @@ </brief_description> <description> [TextServer] is the API backend for managing fonts and rendering text. + [b]Note:[/b] This is a low-level API, consider using [TextLine], [TextParagraph], and [Font] classes instead. + This is an abstract class, so to get the currently active [TextServer] instance, use the following code: + [codeblocks] + [gdscript] + var ts = TextServerManager.get_primary_interface() + [/gdscript] + [csharp] + var ts = TextServerManager.GetPrimaryInterface(); + [/csharp] + [/codeblocks] </description> <tutorials> </tutorials> |