Revert "Store the font's scalability in QFontEngine."
This reverts commit 65b12fbdb1.
QFontEngine is not always loaded from QFontDatabase, resulting in
the flag not being set.
Change-Id: I39bc5bd4a8dea153d191cfc55f4324195f75f64c
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
bb10
parent
94c17dce04
commit
4fbe50e77a
|
|
@ -184,7 +184,6 @@ QFontEngine *loadSingleEngine(int script,
|
|||
if (!engine) {
|
||||
engine = pfdb->fontEngine(def, QChar::Script(script), size->handle);
|
||||
if (engine) {
|
||||
engine->smoothScalable = style->smoothScalable;
|
||||
QFontCache::Key key(def,script);
|
||||
QFontCache::instance()->instance()->insertEngine(key,engine);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,8 +208,7 @@ Q_AUTOTEST_EXPORT QList<QFontEngine *> QFontEngine_stopCollectingEngines()
|
|||
QFontEngine::QFontEngine()
|
||||
: ref(0),
|
||||
font_(0), font_destroy_func(0),
|
||||
face_(0), face_destroy_func(0),
|
||||
smoothScalable(false)
|
||||
face_(0), face_destroy_func(0)
|
||||
{
|
||||
cache_cost = 0;
|
||||
fsType = 0;
|
||||
|
|
|
|||
|
|
@ -302,8 +302,6 @@ public:
|
|||
|
||||
inline QVariant userData() const { return m_userData; }
|
||||
|
||||
bool smoothScalable;
|
||||
|
||||
protected:
|
||||
QFixed lastRightBearing(const QGlyphLayout &glyphs, bool round = false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue