Interface IFontFamilyId
Represents a font family identifier.
Not intended for plugins to implement.
Assembly: Dalamud.dll​
public interface IFontFamilyId : IObjectWithLocalizableName
Derived:
Dalamud.Interface.FontIdentifier.DalamudAssetFontAndFamilyId, Dalamud.Interface.FontIdentifier.DalamudDefaultFontAndFamilyId, Dalamud.Interface.FontIdentifier.GameFontAndFamilyId, Dalamud.Interface.FontIdentifier.SystemFontFamilyId
Properties​
Fonts​
Gets the list of fonts under this family.
[JsonIgnore]
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.
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. |
ListDalamudFonts()​
Gets the list of Dalamud-provided fonts.
public static List<IFontFamilyId> ListDalamudFonts()
Returns​
System.Collections.Generic.List<Dalamud.Interface.FontIdentifier.IFontFamilyId>: The list of fonts.
ListGameFonts()​
Gets the list of Game-provided fonts.
public static List<IFontFamilyId> ListGameFonts()
Returns​
System.Collections.Generic.List<Dalamud.Interface.FontIdentifier.IFontFamilyId>: The list of fonts.
ListSystemFonts(bool)​
Gets the list of System-provided fonts.
public static List<IFontFamilyId> ListSystemFonts(bool refresh)
Returns​
System.Collections.Generic.List<Dalamud.Interface.FontIdentifier.IFontFamilyId>: The list of fonts.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Boolean | refresh | If true, try to refresh the list. |