fix font rendering (for cases when e.g. rendering a font from a Skin)
in those cases, the glyph src coordinates will be relative to the font's subtexture region in the Skin, whereas the glyph uv coords will be correct if rendering from a texture region or a standalone texture
This commit is contained in:
parent
208a118bc0
commit
7d2b164f53
|
@ -148,8 +148,7 @@ public class ExtendedSpriteBatch extends SpriteBatch {
|
|||
fontTexture,
|
||||
currentX + glyphXoffset, currentY + glyphYoffset,
|
||||
glyphWidth, glyphHeight,
|
||||
glyph.srcX, glyph.srcY, glyph.width, glyph.height,
|
||||
false, false
|
||||
glyph.u, glyph.v, glyph.u2, glyph.v2
|
||||
);
|
||||
|
||||
currentX += ((float)glyph.xadvance * scale);
|
||||
|
|
Loading…
Reference in a new issue