java.lang.Object
dev.prozilla.pine.common.asset.text.Glyph

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

    • regionWidth

      public final float regionWidth
    • regionHeight

      public final float regionHeight
    • regionX

      public final float regionX
    • regionY

      public final float regionY
    • y

      public final float y
    • height

      public final float height
    • advance

      public final float advance
  • Constructor Details

    • Glyph

      public Glyph(float regionWidth, float regionHeight, float regionX, float regionY, float y, float height, float advance)
      Creates a font Glyph.
      Parameters:
      regionWidth - Width of the Glyph
      regionHeight - Height of the Glyph
      regionX - X coordinate on the font texture
      regionY - Y coordinate on the font texture
      y - Vertical offset from the baseline
      advance - Advance width