1
0
Fork 0

source/Graphics/Font/FreeTypeDriver.cpp: Take outlineSize into account when setting advance.

This commit is contained in:
Henrik Hautakoski 2016-04-17 22:48:45 +02:00
parent 6306c1e647
commit 1e5d448fa1

View file

@ -154,7 +154,7 @@ Font::Glyph FreeTypeDriver::loadGlyph(unsigned int codepoint, Image& img, unsign
glyph.size.y = (metrics.height / (1 << 6)) + (outlineSize * 2);
}
glyph.advance = static_cast<unsigned char>(metrics.horiAdvance >> 6);
glyph.advance = static_cast<unsigned char>(metrics.horiAdvance >> 6) + (outlineSize * 2);
} else {
log("FreeType: failed to load glyph for character code '%c'\n", codepoint);
}