summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2014-03-17 11:57:16 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 13:39:09 +0100
commitcf56e066ada1029aa7e25bca99843a6b1fbc8f09 (patch)
tree6b780f4e72b4e8f68c27592cde2d9e14975c7092
parent2861a4d109989a626ed32b2f3be54b4d50c5c9c1 (diff)
Revert "Make OpenGL texture glyph cache use the right freetype glyphs"
This reverts commit f78661b03cc1affcdd222be50b35d956edac4711. The reverted patch was working around that QFontEngineFT was using the poor QFontEngine fall back. That issue was fixed in commit 0b7beaaaf2384fae01ae403737450a59b2fcabac, and the work around is no longer needed. This also fixes a rare problem with the workaround when the fontengine and the glyph-cache do not share the same default glyph format which can happen with QRawFonts. Change-Id: I150f70a003b137c1d145f6f70cda568c85633e5c Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
-rw-r--r--src/gui/opengl/qopengltextureglyphcache.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp
index 5844bf639c..3287bbb972 100644
--- a/src/gui/opengl/qopengltextureglyphcache.cpp
+++ b/src/gui/opengl/qopengltextureglyphcache.cpp
@@ -350,17 +350,7 @@ void QOpenGLTextureGlyphCache::fillTexture(const Coord &c, glyph_t glyph, QFixed
return;
}
- QImage mask;
-
- if (m_current_fontengine->hasInternalCaching()) {
- QImage *alphaMap = m_current_fontengine->lockedAlphaMapForGlyph(glyph, subPixelPosition, QFontEngine::Format_None);
- if (!alphaMap || alphaMap->isNull())
- return;
- mask = alphaMap->copy();
- m_current_fontengine->unlockAlphaMapForGlyph();
- } else {
- mask = textureMapForGlyph(glyph, subPixelPosition);
- }
+ QImage mask = textureMapForGlyph(glyph, subPixelPosition);
const int maskWidth = mask.width();
const int maskHeight = mask.height();