mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
Merge pull request #115 from devZoGok/bf-114-no-spaces
bf-114-no-spaces
This commit is contained in:
@@ -98,11 +98,12 @@ namespace vb01{
|
||||
Glyph glyph = *glyphPtr;
|
||||
prepareGlyphs(glyph, glyphTexId, advanceOffset);
|
||||
Vector2 size = glyph.size, bearing = glyph.bearing;
|
||||
int numShifts = 6;
|
||||
|
||||
if(horizontal)
|
||||
advanceOffset.x += node->getScale().x * (size.x + bearing.x);
|
||||
advanceOffset.x += node->getScale().x * (glyph.advance >> numShifts);
|
||||
else
|
||||
advanceOffset.y += node->getScale().y * size.y;
|
||||
advanceOffset.y += node->getScale().y * (glyph.advance >> numShifts);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user