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
This commit is contained in:
Collin Smith 2019-03-05 13:14:45 -08:00
parent 64bf1723aa
commit e5418464fa

View File

@ -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;