Interface IFontFamilyId
Represents a font family identifier.
Not intended for plugins to implement.
Assembly: Dalamud.dll
View Source
public interface IFontFamilyId : IObjectWithLocalizableName
Properties
Fonts
Gets the list of fonts under this family.
View Source
[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.
View Source
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.
View Source
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.
View Source
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.
View Source
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. |