Skip to main content

Class SystemFontFamilyId

Represents a font from system.

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

Implements:
Dalamud.Interface.FontIdentifier.IFontFamilyId, 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; }

Fonts

Gets the list of fonts under this family.

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.

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()

Declaration
public override string ToString()
Returns

System.String

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

Implements