Fix rounding issue
The correct rounding that respects ForceIntegerMetrics flag is done just a few lines below. Change-Id: I8e79ebaded90753092ecd3e99eece8df4c824362 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
f125822ee6
commit
f4dd5344fb
@ -1604,7 +1604,7 @@ void QFontEngineFT::recalcAdvances(QGlyphLayout *glyphs, QFontEngine::ShaperFlag
|
|||||||
face = lockFace();
|
face = lockFace();
|
||||||
g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs->glyphs[i], 0, Format_None, true);
|
g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs->glyphs[i], 0, Format_None, true);
|
||||||
glyphs->advances_x[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10)
|
glyphs->advances_x[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10)
|
||||||
: QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
|
: QFixed::fromFixed(face->glyph->metrics.horiAdvance);
|
||||||
if (!cacheEnabled)
|
if (!cacheEnabled)
|
||||||
delete g;
|
delete g;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user