Revert "Make OpenGL texture glyph cache use the right freetype glyphs"
This reverts commitbb10f78661b03c. The reverted patch was working around that QFontEngineFT was using the poor QFontEngine fall back. That issue was fixed in commit0b7beaaaf2, 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>
parent
2861a4d109
commit
cf56e066ad
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue