mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-21 20:18:14 +07:00
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:
parent
64bf1723aa
commit
e5418464fa
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user