Revert "Make OpenGL texture glyph cache use the right freetype glyphs"

This reverts commit f78661b03c.

The reverted patch was working around that QFontEngineFT was using
the poor QFontEngine fall back. That issue was fixed in commit
0b7beaaaf2, 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>
bb10
Allan Sandfeld Jensen 2014-03-17 11:57:16 +01:00 committed by The Qt Project
parent 2861a4d109
commit cf56e066ad
1 changed files with 1 additions and 11 deletions

View File

@ -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();