summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-12-07 14:01:39 +0200
committerAndras Timar <andras.timar@collabora.com>2015-12-09 08:02:23 +0000
commit3b74c0f8b750cfe89598358fba811f4900287b64 (patch)
tree21d6488bc4e0831a4312c8394ac28a5dc36e6fff /vcl
parent448fec81bf45e0e74be887d139519a3c403c625e (diff)
tdf#96070: Just give up on glyph caching for non-horizontal text
Change-Id: I60f54523f927e97d739a4c735e54b2cc3400aff3 Reviewed-on: https://gerrit.libreoffice.org/20436 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/gdi/winlayout.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index abbdc5a334c4..3f5a78c0f61c 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -371,7 +371,8 @@ bool ImplWinFontEntry::AddChunkOfGlyphs(int nGlyphIndex, const WinLayout& rLayou
aChunk.mbVertical = false;
}
- if (aChunk.mbVertical && aLogfont.lfEscapement != 2700)
+ // Don't even try to handle non-horizontal text
+ if (aChunk.mbVertical || aLogfont.lfEscapement != 0)
return false;
OpenGLCompatibleDC aDC(rGraphics, 0, 0, nBitmapWidth, nBitmapHeight);