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
| Type | Name | Description |
|---|---|---|
System.Int32 | weight | The weight of the font. |
System.Int32 | stretch | The stretch of the font. |
System.Int32 | style | The 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
| Type | Name |
|---|---|
System.Object | obj |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32