Skip to main content

Class SystemFontFamilyId

Represents a font from system.

Assembly: Dalamud.dll
View Source
Declaration
public sealed class SystemFontFamilyId : IFontFamilyId, IObjectWithLocalizableName

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

Properties

EnglishName

Gets the name, preferrably in English.

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

LocaleNames

Gets the names per locales.

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

Fonts

Gets the list of fonts under this family.

View Source
Declaration
[JsonIgnore]
public IReadOnlyList<IFontId> Fonts { get; }

Methods

FindBestMatch(int, int, int)

Finds the index of the font inside Dalamud.Interface.FontIdentifier.IFontFamilyId.Fonts that best matches the given parameters.

View Source
Declaration
public int FindBestMatch(int weight, int stretch, int style)
Returns

System.Int32: The index of the font. Guaranteed to be a valid index.

Parameters
TypeNameDescription
System.Int32weightThe weight of the font.
System.Int32stretchThe stretch of the font.
System.Int32styleThe style of the font.

ToString()

Returns a string that represents the current object.

View Source
Declaration
public override string ToString()
Returns

System.String: A string that represents the current object.### Equals(object?) Determines whether the specified object is equal to the current object.

View Source
Declaration
public override bool Equals(object? obj)
Returns

System.Boolean: true if the specified object is equal to the current object; otherwise, false.

Parameters
TypeNameDescription
System.ObjectobjThe object to compare with the current object.

GetHashCode()

Serves as the default hash function.

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32: A hash code for the current object.

Implements