Class FontAtlasBuildToolkitUtilities
Convenience function for building fonts through Dalamud.Interface.ManagedFontAtlas.IFontAtlas.
Assembly: Dalamud.dll
View Source
public static class FontAtlasBuildToolkitUtilities
Methods
BeginGlyphRange(IEnumerable<char>)
Begins building a new array of System.UInt16
containing ImGui glyph ranges.
View Source
public static FluentGlyphRangeBuilder BeginGlyphRange(this IEnumerable<char> chars)
Returns
Dalamud.Interface.ManagedFontAtlas.FluentGlyphRangeBuilder: A new range builder.
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Char> | chars | The chars. |
BeginGlyphRange(ReadOnlySpan<char>)
Begins building a new array of System.UInt16
containing ImGui glyph ranges.
View Source
public static FluentGlyphRangeBuilder BeginGlyphRange(this ReadOnlySpan<char> chars)
Returns
Dalamud.Interface.ManagedFontAtlas.FluentGlyphRangeBuilder: A new range builder.
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Char> | chars | The chars. |
BeginGlyphRange(string)
Begins building a new array of System.UInt16
containing ImGui glyph ranges.
View Source
public static FluentGlyphRangeBuilder BeginGlyphRange(this string chars)
Returns
Dalamud.Interface.ManagedFontAtlas.FluentGlyphRangeBuilder: A new range builder.
Parameters
Type | Name | Description |
---|---|---|
System.String | chars | The chars. |
BeginGlyphRange(UnicodeRange)
Begins building a new array of System.UInt16
containing ImGui glyph ranges.
View Source
public static FluentGlyphRangeBuilder BeginGlyphRange(this UnicodeRange range)
Returns
Dalamud.Interface.ManagedFontAtlas.FluentGlyphRangeBuilder: A new range builder.
Parameters
Type | Name | Description |
---|---|---|
System.Text.Unicode.UnicodeRange | range | The unicode range. |
ToGlyphRange(IEnumerable<char>, bool, bool)
Compiles given System.Char
s into an array of System.UInt16
containing ImGui glyph ranges.
View Source
public static ushort[] ToGlyphRange(this IEnumerable<char> enumerable, bool addFallbackCodepoints = true, bool addEllipsisCodepoints = true)
Returns
System.UInt16[]
: The compiled range.
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Char> | enumerable | The chars. |
System.Boolean | addFallbackCodepoints | Add fallback codepoints to the range. |
System.Boolean | addEllipsisCodepoints | Add ellipsis codepoints to the range. |
ToGlyphRange(ReadOnlySpan<char>, bool, bool)
Compiles given System.Char
s into an array of System.UInt16
containing ImGui glyph ranges.
View Source
public static ushort[] ToGlyphRange(this ReadOnlySpan<char> span, bool addFallbackCodepoints = true, bool addEllipsisCodepoints = true)
Returns
System.UInt16[]
: The compiled range.
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Char> | span | The chars. |
System.Boolean | addFallbackCodepoints | Add fallback codepoints to the range. |
System.Boolean | addEllipsisCodepoints | Add ellipsis codepoints to the range. |
ToGlyphRange(string, bool, bool)
Compiles given string into an array of System.UInt16
containing ImGui glyph ranges.
View Source
public static ushort[] ToGlyphRange(this string @string, bool addFallbackCodepoints = true, bool addEllipsisCodepoints = true)
Returns
System.UInt16[]
: The compiled range.
Parameters
Type | Name | Description |
---|---|---|
System.String | string | The string. |
System.Boolean | addFallbackCodepoints | Add fallback codepoints to the range. |
System.Boolean | addEllipsisCodepoints | Add ellipsis codepoints to the range. |
FindConfigPtr(IFontAtlasBuildToolkit, ImFontPtr)
Finds the corresponding ImGuiNET.ImFontConfigPtr in Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit.NewImAtlas.ImGuiNET.ImFontAtlasPtr.ConfigData that corresponds to the specified font <code class="paramref">fontPtr</code>.
View Source
public static ImFontConfigPtr FindConfigPtr(this IFontAtlasBuildToolkit toolkit, ImFontPtr fontPtr)
Returns
ImGuiNET.ImFontConfigPtr: The relevant config pointer, or empty config pointer if not found.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit | toolkit | The toolkit. |
ImGuiNET.ImFontPtr | fontPtr | The font. |
OnPreBuild(IFontAtlasBuildToolkit, Action<IFontAtlasBuildToolkitPreBuild>)
Invokes <code class="paramref">action</code> if Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit.BuildStep of <code class="paramref">toolkit</code> is Dalamud.Interface.ManagedFontAtlas.FontAtlasBuildStep.PreBuild.
View Source
public static IFontAtlasBuildToolkit OnPreBuild(this IFontAtlasBuildToolkit toolkit, Action<IFontAtlasBuildToolkitPreBuild> action)
Returns
Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit: This, for method chaining.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit | toolkit | The toolkit. |
System.Action<Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkitPreBuild> | action | The action. |
OnPostBuild(IFontAtlasBuildToolkit, Action<IFontAtlasBuildToolkitPostBuild>)
Invokes <code class="paramref">action</code> if Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit.BuildStep of <code class="paramref">toolkit</code> is Dalamud.Interface.ManagedFontAtlas.FontAtlasBuildStep.PostBuild.
View Source
public static IFontAtlasBuildToolkit OnPostBuild(this IFontAtlasBuildToolkit toolkit, Action<IFontAtlasBuildToolkitPostBuild> action)
Returns
Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit: toolkit, for method chaining.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit | toolkit | The toolkit. |
System.Action<Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkitPostBuild> | action | The action. |