Interface IFontAtlasBuildToolkitPostBuild
Toolkit for use when the build state is Dalamud.Interface.ManagedFontAtlas.FontAtlasBuildStep.PostBuild.
Not intended for plugins to implement.
Assembly: Dalamud.dll
View Source
Declaration
public interface IFontAtlasBuildToolkitPostBuild : IFontAtlasBuildToolkit
Methods
GetFontScaleMode(ImFontPtr)
Gets the scaling mode for the given font.
View Source
Declaration
FontScaleMode GetFontScaleMode(ImFontPtr fontPtr)
Returns
Dalamud.Interface.ManagedFontAtlas.FontScaleMode: The scaling mode.
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontPtr | fontPtr | The font. |
StoreTexture(IDalamudTextureWrap, bool)
Stores a texture to be managed with the atlas.
View Source
Declaration
int StoreTexture(IDalamudTextureWrap textureWrap, bool disposeOnError)
Returns
System.Int32
: The texture index.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap | textureWrap | The texture wrap. |
System.Boolean | disposeOnError | Dispose the wrap on error. |
FitRatio(ImFontPtr, bool)
Fits a font to a fixed 1:1 ratio adjusting glyph positions horizontally and vertically to fit within font size boundaries.
View Source
Declaration
void FitRatio(ImFontPtr font, bool rebuildLookupTable = true)
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontPtr | font | The font to fit. |
System.Boolean | rebuildLookupTable | Whether to call target.BuildLookupTable(). |
CopyGlyphsAcrossFonts(ImFontPtr, ImFontPtr, bool, bool, char, char)
Copies glyphs across fonts, in a safer way.
If the font does not belong to the current atlas, this function is a no-op.
View Source
Declaration
void CopyGlyphsAcrossFonts(ImFontPtr source, ImFontPtr target, bool missingOnly, bool rebuildLookupTable = true, char rangeLow = ' ', char rangeHigh = '\ufffe')
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontPtr | source | Source font. |
ImGuiNET.ImFontPtr | target | Target font. |
System.Boolean | missingOnly | Whether to copy missing glyphs only. |
System.Boolean | rebuildLookupTable | Whether to call target.BuildLookupTable(). |
System.Char | rangeLow | Low codepoint range to copy. |
System.Char | rangeHigh | High codepoing range to copy. |
BuildLookupTable(ImFontPtr)
Calls ImGuiNET.ImFontPtr.BuildLookupTable(), with some fixups.
View Source
Declaration
void BuildLookupTable(ImFontPtr font)
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontPtr | font | The font. |
Extension Methods
- Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit.Dalamud.Interface.ManagedFontAtlas.FontAtlasBuildToolkitUtilities.FindConfigPtr(ImGuiNET.ImFontPtr)
- Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit.Dalamud.Interface.ManagedFontAtlas.FontAtlasBuildToolkitUtilities.OnPostBuild(System.Action{Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkitPostBuild})
- Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkit.Dalamud.Interface.ManagedFontAtlas.FontAtlasBuildToolkitUtilities.OnPreBuild(System.Action{Dalamud.Interface.ManagedFontAtlas.IFontAtlasBuildToolkitPreBuild})