[TextServer] Add notes about high level text/font classes and getting active server instance.
This commit is contained in:
@ -5,6 +5,16 @@
|
|||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
[TextServer] is the API backend for managing fonts and rendering text.
|
[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>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
|
|||||||
Reference in New Issue
Block a user