Skip to main content

Class SystemFontId

Represents a font installed in the system.

Assembly: Dalamud.dll
Declaration
public sealed class SystemFontId : IFontId, IObjectWithLocalizableName

Implements:
Dalamud.Interface.FontIdentifier.IFontId, Dalamud.Interface.FontIdentifier.IObjectWithLocalizableName

Properties

EnglishName

Gets the name, preferrably in English.

Declaration
[JsonProperty]
public string EnglishName { get; init; }

LocaleNames

Gets the names per locales.

Declaration
[JsonProperty]
public IReadOnlyDictionary<string, string>? LocaleNames { get; }

Family

Gets the associated font family.

Declaration
[JsonProperty]
public IFontFamilyId Family { get; init; }

Weight

Gets the font weight, ranging from 1 to 999.

Declaration
[JsonProperty]
public int Weight { get; init; }

Stretch

Gets the font stretch, ranging from 1 to 9.

Declaration
[JsonProperty]
public int Stretch { get; init; }

Style

Gets the font style. Treat as an opaque value.

Declaration
[JsonProperty]
public int Style { get; init; }

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

GetHashCode()

Declaration
public override int GetHashCode()
Returns

System.Int32

ToString()

Declaration
public override string ToString()
Returns

System.String

AddToBuildToolkit(IFontAtlasBuildToolkitPreBuild, in SafeFontConfig)

Declaration
public ImFontPtr AddToBuildToolkit(IFontAtlasBuildToolkitPreBuild tk, in SafeFontConfig config)
Returns

Dalamud.Bindings.ImGui.ImFontPtr

Parameters
TypeName
Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkitPreBuildtk
Dalamud.Interface.ManagedFontAtlas.SafeFontConfigconfig

GetFileAndIndex()

Gets the file containing this font, and the font index within.

Declaration
public (string Path, int Index) GetFileAndIndex()
Returns

System.ValueTuple<System.String,System.Int32>: The path and index.

Implements