java.lang.Object
dev.prozilla.pine.common.system.resource.text.Glyph

public class Glyph extends Object
Represents a font glyph.
  • Field Details

    • width

      public final int width
    • height

      public final int height
    • x

      public final int x
    • y

      public final int y
    • advance

      public final float advance
  • Constructor Details

    • Glyph

      public Glyph(int width, int height, int x, int y, float advance)
      Creates a font Glyph.
      Parameters:
      width - Width of the Glyph
      height - Height of the Glyph
      x - X coordinate on the font texture
      y - Y coordinate on the font texture
      advance - Advance width