TextServerManager
A singleton for managing TextServer
implementations.
class TextServerManager
TextServerManager
is the API backend for loading, enumerating, and switching TextServer
s.
This object emits the following signals:
Superclasses
class Object
Base class for all other classes in the engine.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Types
class Signal1
Signal support.
class Signal2
Signal support.
Type members
static func addInterface(TextServer?
) Registers a
TextServer
interface.static func findInterface(name: String
) -> TextServer? Finds an interface by its
name
.static func getInterface(idx: Int32
) -> TextServer? Returns the interface registered at a given index.
static func getInterfaceCount(
) -> Int32 Returns the number of interfaces currently registered.
static func getInterfaces(
) -> VariantCollection<GDictionary> Returns a list of available interfaces, with the index and name of each interface.
static func getPrimaryInterface(
) -> TextServer? Returns the primary
TextServer
interface currently in use.static func removeInterface(TextServer?
) Removes an interface. All fonts and shaped text caches should be freed before removing an interface.
static func setPrimaryInterface(index: TextServer?
) Sets the primary
TextServer
interface.class var godotClassName: StringName
Instance members
var interfaceAdded: Signal1
Emitted when a new interface has been added.
var interfaceRemoved: Signal2
Emitted when an interface is removed.