Skip to main content

Interface IFontFamilyId

Represents a font family identifier.

Not intended for plugins to implement.

Assembly: Dalamud.dll
View Source
Declaration
public interface IFontFamilyId : IObjectWithLocalizableName

Properties

Fonts

Gets the list of fonts under this family.

View Source
Declaration
[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
Declaration
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.

ListDalamudFonts()

Gets the list of Dalamud-provided fonts.

View Source
Declaration
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
Declaration
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
Declaration
public static List<IFontFamilyId> ListSystemFonts(bool refresh)
Returns

System.Collections.Generic.List<Dalamud.Interface.FontIdentifier.IFontFamilyId>: The list of fonts.

Parameters
TypeNameDescription
System.BooleanrefreshIf true, try to refresh the list.