Interface Font

All Known Implementing Classes:
FKFont, MinecraftBitmapFont

public interface Font
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Deprecated.
    this is a crutch to be used until TextFragmentWidget is able to adjust its height and offset characters to fit.
    getGlyph(int codepoint)
     
    float
    The scale factor to be applied to the font size when emitting vertex data.
  • Method Details

    • scaleFactor

      float scaleFactor()
      The scale factor to be applied to the font size when emitting vertex data. The GlyphRef.minX() and GlyphRef.maxX() must have this premultiplied.
    • baselineShift

      @Deprecated float baselineShift()
      Deprecated.
      this is a crutch to be used until TextFragmentWidget is able to adjust its height and offset characters to fit.
    • getGlyph

      GlyphRef getGlyph(int codepoint)