source/Graphics/Font/FreeTypeDriver.cpp: Take outlineSize into account when setting advance.
This commit is contained in:
parent
6306c1e647
commit
1e5d448fa1
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ Font::Glyph FreeTypeDriver::loadGlyph(unsigned int codepoint, Image& img, unsign
|
||||||
glyph.size.y = (metrics.height / (1 << 6)) + (outlineSize * 2);
|
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 {
|
} else {
|
||||||
log("FreeType: failed to load glyph for character code '%c'\n", codepoint);
|
log("FreeType: failed to load glyph for character code '%c'\n", codepoint);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue