summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-12-07 14:01:39 +0200
committerTor Lillqvist <tml@collabora.com>2015-12-07 14:03:35 +0200
commit573cd28987614a8893f47f67f05587b7afd86546 (patch)
tree34ed1f23a24e3cee4fc1a298a047c1f059d193e9
parent4915a2bed6c95d706e52b4aad1ba62c2011b0675 (diff)
tdf#96070: Just give up on glyph caching for non-horizontal text
Change-Id: I60f54523f927e97d739a4c735e54b2cc3400aff3
-rw-r--r--vcl/win/gdi/winlayout.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index b5ce57e51bfb..3afa26efdc67 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -358,7 +358,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);