From 8c58640fdfe5d182cd8ab9ad0598c54c0487eb7c Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 9 Sep 2013 12:02:33 +0200 Subject: [PATCH] Use Qt's own glyph cache with the freetype engine. This fixes rendering in the OpenGL paint engine, simplifies our internal code paths and also produces nicer text for non-90 rotated glyphs Change-Id: Ib206065cd486ac29067f9ebf4a0d74189a673f1e Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Konstantin Ritt --- src/gui/text/qfontengine_ft.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/text/qfontengine_ft.cpp b/src/gui/text/qfontengine_ft.cpp index cad9b02f41..61f4781e3f 100644 --- a/src/gui/text/qfontengine_ft.cpp +++ b/src/gui/text/qfontengine_ft.cpp @@ -631,8 +631,7 @@ QFontEngineFT::QFontEngineFT(const QFontDef &fd) #endif defaultFormat = Format_None; embeddedbitmap = false; - const QByteArray env = qgetenv("QT_NO_FT_CACHE"); - cacheEnabled = env.isEmpty() || env.toInt() == 0; + cacheEnabled = qEnvironmentVariableIsSet("QT_USE_FT_CACHE"); m_subPixelPositionCount = 4; }