Klasse ImGuiFontManager

java.lang.Object
de.luckymcdev.foundryengine.client.imgui.ImGuiFontManager

public final class ImGuiFontManager extends Object
Minimal ImGui font manager. Fonts are identified by font definition JSON IDs (same as FontDescription.Resource). Uses Minecraft's own GlyphProviderDefinition.Conditional.CODEC to parse the JSON and extract the TTF file path.
  • Felddetails

    • DEFAULT_GLYPH_RANGES

      public static final short[] DEFAULT_GLYPH_RANGES
    • GLYPH_RANGES_MINIMAL

      public static final short[] GLYPH_RANGES_MINIMAL
  • Konstruktordetails

    • ImGuiFontManager

      public ImGuiFontManager(ImGuiImplGl3 glImpl)
  • Methodendetails

    • setGlobalGlyphRanges

      public void setGlobalGlyphRanges(short[] ranges)
    • setGlobalOversample

      public void setGlobalOversample(int h, int v)
    • setGlobalRasterizerMultiply

      public void setGlobalRasterizerMultiply(float mul)
    • setGlobalGlyphOffset

      public void setGlobalGlyphOffset(float x, float y)
    • load

      public void load(net.minecraft.server.packs.resources.ResourceManager rm, Collection<net.minecraft.network.chat.FontDescription.Resource> fontIds, @Nullable net.minecraft.network.chat.FontDescription.Resource defaultId)
    • load

      public void load(net.minecraft.server.packs.resources.ResourceManager rm, Collection<net.minecraft.network.chat.FontDescription.Resource> fontIds)
    • destroy

      public void destroy()
    • getCurrent

      public imgui.ImFont getCurrent()
    • getFont

      public imgui.ImFont getFont(net.minecraft.network.chat.FontDescription id)
    • getLoadedFontIds

      public Set<net.minecraft.network.chat.FontDescription.Resource> getLoadedFontIds()
    • withFont

      public void withFont(net.minecraft.network.chat.FontDescription.Resource font, Runnable runnable)
    • pushFont

      public void pushFont(net.minecraft.network.chat.FontDescription.Resource id)
    • popFont

      public void popFont()