Extrude font glyph quads by 1 pixel to add some antialiasing at the edges of the glyphs.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-05-19 20:28:37 -03:00
parent 6bdbd17249
commit 76a7d30f1a
2 changed files with 13 additions and 5 deletions
+4 -1
View File
@@ -238,7 +238,10 @@ private:
// ID which is incremented when the texture cache is invalidated.
uint32 textureCacheID;
static const int TEXTURE_PADDING = 1;
// 1 pixel of transparent padding between glyphs (so quads won't pick up
// other glyphs), plus one pixel of transparent padding that the quads will
// use, for edge antialiasing.
static const int TEXTURE_PADDING = 2;
// This will be used if the Rasterizer doesn't have a tab character itself.
static const int SPACES_PER_TAB = 4;