Fix glyph positions with DirectWrite font engine
Make same change as we have done in the other engines (floor instead of round) to be in sync with changes in the paint engines. Task-number: QTBUG-26409 Change-Id: I7a99aa27c93cb695ac91507505ef0b940cd78ebc Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>bb10
parent
6fb5b6fa58
commit
3593701940
|
|
@ -545,7 +545,7 @@ QImage QWindowsFontEngineDirectWrite::imageForGlyph(glyph_t t,
|
|||
glyphRun.bidiLevel = 0;
|
||||
glyphRun.glyphOffsets = &glyphOffset;
|
||||
|
||||
QFixed x = margin - metrics.x.round() + subPixelPosition;
|
||||
QFixed x = margin - metrics.x.floor() + subPixelPosition;
|
||||
QFixed y = margin - metrics.y.floor();
|
||||
|
||||
DWRITE_MATRIX transform;
|
||||
|
|
|
|||
Loading…
Reference in New Issue