diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-02-11 13:50:38 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-19 19:36:34 +0100 |
commit | d0784ae43bafbb577ce1d30dcd3327e9271ead2f (patch) | |
tree | f40c938e2e741f2e34f9296d0830a45689644437 /src/network/access/qnetworkrequest.h | |
parent | e380a48af72575edd86f6aeb33d55ee49e30fbda (diff) |
Prevent top/left clipping of anti-aliased glyphs in CoreText font engine
Padding the bounding rect was not enough, as we failed to shift the glyph
accordingly so that it would end up in the center of the bounding rect.
We also didn't take subpixel-positioning into account, which may shift the
position of the glyph too far to the right to be within the image size that
we reserve.
There are still cases where the glyphs seem clipped compared to the same
text rendered with CoreText, but that's because we end up shaping the
text slightly differently, resulting in different subpixel positions
than what CoreText chooses.
Change-Id: Icb88c829f86457b16bdecbc4c24b3f1c23448261
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/network/access/qnetworkrequest.h')
0 files changed, 0 insertions, 0 deletions