diff options
author | Andreas Kling <andreas.kling@nokia.com> | 2010-03-05 13:12:18 (GMT) |
---|---|---|
committer | Andreas Kling <andreas.kling@nokia.com> | 2010-03-05 15:30:54 (GMT) |
commit | 56c9bd9a4c03418ad0ba83b576bcc278e86bfe99 (patch) | |
tree | d9a1046f44a4b3083a4862c0dbd9db877d06c8b2 /src/gui/painting/qtextureglyphcache.cpp | |
parent | 1fdaff30cde418a858170547e9d3c514617ba366 (diff) | |
download | Qt-56c9bd9a4c03418ad0ba83b576bcc278e86bfe99.zip Qt-56c9bd9a4c03418ad0ba83b576bcc278e86bfe99.tar.gz Qt-56c9bd9a4c03418ad0ba83b576bcc278e86bfe99.tar.bz2 |
FreeType: Fast lookup of Latin-1 glyphs
Store all glyphs with index < 256 in a pointer array for fast lookup
Reviewed-by: Benjamin Poulain
Diffstat (limited to 'src/gui/painting/qtextureglyphcache.cpp')
-rw-r--r-- | src/gui/painting/qtextureglyphcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtextureglyphcache.cpp b/src/gui/painting/qtextureglyphcache.cpp index cf3957b..4418018 100644 --- a/src/gui/painting/qtextureglyphcache.cpp +++ b/src/gui/painting/qtextureglyphcache.cpp @@ -195,7 +195,7 @@ QImage QTextureGlyphCache::textureMapForGlyph(glyph_t g) const QFontEngineFT::QGlyphSet *gset = ft->loadTransformedGlyphSet(m_transform); if (gset && ft->loadGlyphs(gset, &g, 1, format)) { - QFontEngineFT::Glyph *glyph = gset->glyph_data.value(g); + QFontEngineFT::Glyph *glyph = gset->getGlyph(g); const int bytesPerLine = (format == QFontEngineFT::Format_Mono ? ((glyph->width + 31) & ~31) >> 3 : (glyph->width + 3) & ~3); return QImage(glyph->data, glyph->width, glyph->height, bytesPerLine, imageFormat); |