Class SystemFontId
Represents a font installed in the system.
Assembly: Dalamud.dll
View Source
public sealed class SystemFontId : IFontId, IObjectWithLocalizableName
Implements:
Dalamud.Interface.FontIdentifier.IFontId, Dalamud.Interface.FontIdentifier.IObjectWithLocalizableName
Properties
EnglishName
Gets the name, preferrably in English.
View Source
[JsonProperty]
public string EnglishName { get; init; }
LocaleNames
Gets the names per locales.
View Source
[JsonProperty]
public IReadOnlyDictionary<string, string>? LocaleNames { get; }
Family
Gets the associated font family.
View Source
[JsonProperty]
public IFontFamilyId Family { get; init; }
Weight
Gets the font weight, ranging from 1 to 999.
View Source
[JsonProperty]
public int Weight { get; init; }
Stretch
Gets the font stretch, ranging from 1 to 9.
View Source
[JsonProperty]
public int Stretch { get; init; }
Style
Gets the font style. Treat as an opaque value.
View Source
[JsonProperty]
public int Style { get; init; }
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
View Source
public override bool Equals(object? obj)
Returns
System.Boolean
: true if the specified object is equal to the current object; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
GetHashCode()
Serves as the default hash function.
View Source
public override int GetHashCode()
Returns
System.Int32
: A hash code for the current object.### ToString()
Returns a string that represents the current object.
View Source
public override string ToString()
Returns
System.String
: A string that represents the current object.### AddToBuildToolkit(IFontAtlasBuildToolkitPreBuild, in SafeFontConfig)
Adds this font to the given font build toolkit.
View Source
public ImFontPtr AddToBuildToolkit(IFontAtlasBuildToolkitPreBuild tk, in SafeFontConfig config)
Returns
ImGuiNET.ImFontPtr: The added font.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkitPreBuild | tk | The font build toolkit. |
Dalamud.Interface.ManagedFontAtlas.SafeFontConfig | config | The font configuration. Some parameters may be ignored. |
GetFileAndIndex()
Gets the file containing this font, and the font index within.
View Source
public (string Path, int Index) GetFileAndIndex()
Returns
System.ValueTuple<System.String,System.Int32>
: The path and index.