diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-08-31 17:46:08 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-08-31 17:47:09 +0300 |
commit | 860d6948cc56104f7de3d5bf3b5aa1d7f1fbd840 (patch) | |
tree | f6d9cf286c9131aaabf675dcb93cf70cc886fee8 | |
parent | 1e9ecb2a2771ea6699e22b2693c96f4927d96ffb (diff) |
Compensate for the extra two pixels in ImplWinFontEntry::AddChunkOfGlyphs()
Should do similarly for vertical text, too.
Change-Id: I51f5ee3ba1686f151b04f98c43388e0bdfac97fb
-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 cd4b3695f24e..18ca7ecba253 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); } |