From e5418464fa4898c7193e7fbd04b21135c17a62af Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Tue, 5 Mar 2019 13:14:45 -0800 Subject: [PATCH] Fixed issue with font glyph sizes Fixed issue with font glyph sizes being slightly too short I think this was a fix for when there was no padding between glyphs -- no adverse changes apparent yet --- core/src/gdx/diablo/codec/FontTBL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/gdx/diablo/codec/FontTBL.java b/core/src/gdx/diablo/codec/FontTBL.java index 55302a9f..888a69c6 100644 --- a/core/src/gdx/diablo/codec/FontTBL.java +++ b/core/src/gdx/diablo/codec/FontTBL.java @@ -76,7 +76,7 @@ public class FontTBL { CharData cData = FontTBL.this.cData[c]; glyph.width = cData.width; - glyph.height = charHeight - 1; + glyph.height = charHeight; // this was {@code charHeight - 1} before, maybe because of no glyph padding in the backing texture glyph.yoffset = -(2 * glyph.height); glyph.xadvance = glyph.width;