Previously, text always rounded down the advance to upload it in the pixel buffer.
but this caused a issue where certain glyphs appeared too close together
when the font size was very small.
Now, rounding the advance values for a more natural layout.
Change-Id: I35c3138c59e3cc8b9418ac448d256e83e33046b0
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
glyphInfo.xBearing += static_cast<float>(metrics.vertBearingX) * FROM_266;
glyphInfo.yBearing += static_cast<float>(metrics.vertBearingY) * FROM_266;
}
+ glyphInfo.advance = round(glyphInfo.advance);
const bool isEmboldeningRequired = glyphInfo.isBoldRequired && !(glyphData.mStyleFlags & FT_STYLE_FLAG_BOLD);
if(isEmboldeningRequired)