Interface Font

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
BitmapFont, BlankFont, TrueTypeFont, UnicodeTextureFont

@Environment(CLIENT)
public interface Font
extends Closeable
  • Method Summary

    Modifier and Type Method Description
    default void close()  
    default RenderableGlyph getGlyph​(int codePoint)  
    IntSet getProvidedGlyphs()
    Returns the set of code points for which this font can provide glyphs.
  • Method Details

    • close

      default void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getGlyph

      @Nullable default RenderableGlyph getGlyph​(int codePoint)
    • getProvidedGlyphs

      IntSet getProvidedGlyphs()
      Returns the set of code points for which this font can provide glyphs.
      Returns:
      a set of integer code points.