diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-08-31 17:46:08 +0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-09-01 07:58:36 +0000 |
commit | 8b4268dc9e142ce9e192e28989096db67796eb7c (patch) | |
tree | aa3e251965db4b28368329542168ee3a74e33fcb /vcl/win | |
parent | 0a3cfc66d5c82e5c44ef5220bdbe4344b9d1e2ce (diff) |
Compensate for the extra two pixels in ImplWinFontEntry::AddChunkOfGlyphs()
Should do similarly for vertical text, too.
Change-Id: I51f5ee3ba1686f151b04f98c43388e0bdfac97fb
(cherry picked from commit 860d6948cc56104f7de3d5bf3b5aa1d7f1fbd840)
Reviewed-on: https://gerrit.libreoffice.org/18181
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 4718a8dc38f6..ae493578c704 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -1755,7 +1755,7 @@ bool UniscribeLayout::DrawCachedGlyphs(SalGraphics& rGraphics) const { SalTwoRect a2Rects(rChunk.maLocation[n].Left(), rChunk.maLocation[n].Top(), rChunk.maLocation[n].getWidth(), rChunk.maLocation[n].getHeight(), - nAdvance + aPos.X() + mpGlyphOffsets[i].du, aPos.Y() + mpGlyphOffsets[i].dv - rChunk.mnAscentPlusIntLeading, + nAdvance + aPos.X() + mpGlyphOffsets[i].du - 2, aPos.Y() + mpGlyphOffsets[i].dv - rChunk.mnAscentPlusIntLeading, rChunk.maLocation[n].getWidth(), rChunk.maLocation[n].getHeight()); // ??? pImpl->DrawMask(*rChunk.mpTexture, salColor, a2Rects); } |