Class Glyph
java.lang.Object
dev.prozilla.pine.common.asset.text.Glyph
Represents a font glyph.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal float -
Constructor Summary
ConstructorsConstructorDescriptionGlyph(float regionWidth, float regionHeight, float regionX, float regionY, float y, float height, float advance) Creates a font Glyph. -
Method Summary
-
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 GlyphregionHeight- Height of the GlyphregionX- X coordinate on the font textureregionY- Y coordinate on the font texturey- Vertical offset from the baselineadvance- Advance width
-