[Libreoffice-commits] core.git: vcl/win
Tor Lillqvist
tml at collabora.com
Mon Aug 24 08:12:17 PDT 2015
vcl/win/source/gdi/winlayout.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 32069752b94a31303fd327b0c47037072600be6c
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Aug 24 18:08:08 2015 +0300
Don't attempt to cache glyphs that are vertical but the text direction isn't
That is a too complex and rare case to bother with, I think.
Change-Id: Ica6ef7fa05314d2367dcff32627c1aec6ba8f8df
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index 85b1e97..f26d3eb 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -353,6 +353,9 @@ bool ImplWinFontEntry::AddChunkOfGlyphs(int nGlyphIndex, const WinLayout& rLayou
aChunk.mbVertical = false;
}
+ if (aChunk.mbVertical && aLogfont.lfEscapement != 2700)
+ return false;
+
OpenGLCompatibleDC aDC(rGraphics, 0, 0, nBitmapWidth, nBitmapHeight);
HFONT hNonAntialiasedFont = NULL;
More information about the Libreoffice-commits
mailing list