Table of Contents

Class TextServerManager

Namespace
Godot
Assembly
GodotSharp.dll

TextServerManager is the API backend for loading, enumerating, and switching TextServers.

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.

public static class TextServerManager
Inheritance
TextServerManager
Inherited Members

Properties

Singleton

public static TextServerManagerInstance Singleton { get; }

Property Value

TextServerManagerInstance

Methods

AddInterface(TextServer)

Registers a TextServer interface.

public static void AddInterface(TextServer @interface)

Parameters

interface TextServer

FindInterface(string)

Finds an interface by its name.

public static TextServer FindInterface(string name)

Parameters

name string

Returns

TextServer

GetInterface(int)

Returns the interface registered at a given index.

public static TextServer GetInterface(int idx)

Parameters

idx int

Returns

TextServer

GetInterfaceCount()

Returns the number of interfaces currently registered.

public static int GetInterfaceCount()

Returns

int

GetInterfaces()

Returns a list of available interfaces, with the index and name of each interface.

public static Array<Dictionary> GetInterfaces()

Returns

Array<Dictionary>

GetPrimaryInterface()

Returns the primary TextServer interface currently in use.

public static TextServer GetPrimaryInterface()

Returns

TextServer

RemoveInterface(TextServer)

Removes an interface. All fonts and shaped text caches should be freed before removing an interface.

public static void RemoveInterface(TextServer @interface)

Parameters

interface TextServer

SetPrimaryInterface(TextServer)

Sets the primary TextServer interface.

public static void SetPrimaryInterface(TextServer index)

Parameters

index TextServer

Events

InterfaceAdded

Emitted when a new interface has been added.

public static event TextServerManager.InterfaceAddedEventHandler InterfaceAdded

Event Type

TextServerManager.InterfaceAddedEventHandler

InterfaceRemoved

Emitted when an interface is removed.

public static event TextServerManager.InterfaceRemovedEventHandler InterfaceRemoved

Event Type

TextServerManager.InterfaceRemovedEventHandler