Class BedrockBitmapFont

java.lang.Object
com.viaversion.viafabricplus.bedrock.render.font.BedrockBitmapFont
All Implemented Interfaces:
com.mojang.blaze3d.font.GlyphProvider, AutoCloseable

public final class BedrockBitmapFont extends Object implements com.mojang.blaze3d.font.GlyphProvider
Retains native bitmap metrics and sampling on a provider-owned atlas.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.mojang.blaze3d.font.GlyphProvider

    com.mojang.blaze3d.font.GlyphProvider.Conditional
  • Field Summary

    Fields inherited from interface com.mojang.blaze3d.font.GlyphProvider

    BASELINE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    com.mojang.blaze3d.font.UnbakedGlyph
    getGlyph(int codepoint)
     
    it.unimi.dsi.fastutil.ints.IntSet
     
    static com.mojang.blaze3d.font.GlyphProvider
    loadBitmap(com.mojang.blaze3d.font.GlyphProvider source, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid)
    Resolve the descriptor and retained page from the converted texture's own pack.
    static com.mojang.blaze3d.font.GlyphProvider
    loadUnicode(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid, int height, int ascent)
     
    static boolean
    ownsBitmap(net.minecraft.resources.Identifier file)
     
    static boolean
    ownsUnicode(net.minecraft.resources.Identifier file)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • ownsUnicode

      public static boolean ownsUnicode(net.minecraft.resources.Identifier file)
    • loadUnicode

      public static com.mojang.blaze3d.font.GlyphProvider loadUnicode(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid, int height, int ascent) throws IOException
      Throws:
      IOException
    • ownsBitmap

      public static boolean ownsBitmap(net.minecraft.resources.Identifier file)
    • loadBitmap

      public static com.mojang.blaze3d.font.GlyphProvider loadBitmap(com.mojang.blaze3d.font.GlyphProvider source, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid) throws IOException
      Resolve the descriptor and retained page from the converted texture's own pack.
      Throws:
      IOException
    • getGlyph

      public com.mojang.blaze3d.font.UnbakedGlyph getGlyph(int codepoint)
      Specified by:
      getGlyph in interface com.mojang.blaze3d.font.GlyphProvider
    • getSupportedGlyphs

      public it.unimi.dsi.fastutil.ints.IntSet getSupportedGlyphs()
      Specified by:
      getSupportedGlyphs in interface com.mojang.blaze3d.font.GlyphProvider
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface com.mojang.blaze3d.font.GlyphProvider