Table of Contents

Class TextServerManagerInstance

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.

[GodotClassName("TextServerManager")]
public class TextServerManagerInstance : GodotObject, IDisposable
Inheritance
TextServerManagerInstance
Implements
Inherited Members

Methods

AddInterface(TextServer)

Registers a TextServer interface.

public void AddInterface(TextServer @interface)

Parameters

interface TextServer

FindInterface(string)

Finds an interface by its name.

public TextServer FindInterface(string name)

Parameters

name string

Returns

TextServer

GetInterface(int)

Returns the interface registered at a given index.

public TextServer GetInterface(int idx)

Parameters

idx int

Returns

TextServer

GetInterfaceCount()

Returns the number of interfaces currently registered.

public int GetInterfaceCount()

Returns

int

GetInterfaces()

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

public Array<Dictionary> GetInterfaces()

Returns

Array<Dictionary>

GetPrimaryInterface()

Returns the primary TextServer interface currently in use.

public TextServer GetPrimaryInterface()

Returns

TextServer

HasGodotClassMethod(in godot_string_name)

Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.

protected override bool HasGodotClassMethod(in godot_string_name method)

Parameters

method godot_string_name

Name of the method to check for.

Returns

bool

HasGodotClassSignal(in godot_string_name)

Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.

protected override bool HasGodotClassSignal(in godot_string_name signal)

Parameters

signal godot_string_name

Name of the signal to check for.

Returns

bool

InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)

Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.

protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)

Parameters

method godot_string_name

Name of the method to invoke.

args NativeVariantPtrArgs

Arguments to use with the invoked method.

ret godot_variant

Value returned by the invoked method.

Returns

bool

RemoveInterface(TextServer)

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

public void RemoveInterface(TextServer @interface)

Parameters

interface TextServer

SetPrimaryInterface(TextServer)

Sets the primary TextServer interface.

public void SetPrimaryInterface(TextServer index)

Parameters

index TextServer

Events

InterfaceAdded

Emitted when a new interface has been added.

public event TextServerManagerInstance.InterfaceAddedEventHandler InterfaceAdded

Event Type

TextServerManagerInstance.InterfaceAddedEventHandler

InterfaceRemoved

Emitted when an interface is removed.

public event TextServerManagerInstance.InterfaceRemovedEventHandler InterfaceRemoved

Event Type

TextServerManagerInstance.InterfaceRemovedEventHandler