Skip to main content

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
TypeNameDescription
ImGuiNET.ImFontPtrfontPtrThe 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
TypeNameDescription
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWraptextureWrapThe texture wrap.
System.BooleandisposeOnErrorDispose 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
TypeNameDescription
ImGuiNET.ImFontPtrfontThe font to fit.
System.BooleanrebuildLookupTableWhether 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
TypeNameDescription
ImGuiNET.ImFontPtrsourceSource font.
ImGuiNET.ImFontPtrtargetTarget font.
System.BooleanmissingOnlyWhether to copy missing glyphs only.
System.BooleanrebuildLookupTableWhether to call target.BuildLookupTable().
System.CharrangeLowLow codepoint range to copy.
System.CharrangeHighHigh codepoing range to copy.

BuildLookupTable(ImFontPtr)

Calls ImGuiNET.ImFontPtr.BuildLookupTable(), with some fixups.

View Source
Declaration
void BuildLookupTable(ImFontPtr font)
Parameters
TypeNameDescription
ImGuiNET.ImFontPtrfontThe 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})