From 963c47aece12a0025707c76f6f8cb3de306752b8 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sun, 15 Mar 2020 12:35:13 +0100 Subject: Don't limit AAT support to Darwin based platforms Harfbuzz supports this in a cross platform way, so there's no reason not to accept a font with AAT tables on other platforms. Change-Id: I00c38a11dfd4a32e846254c1da9e8841090f5fd9 Reviewed-by: Konstantin Ritt --- src/gui/text/qfontengine.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/gui/text/qfontengine.cpp') diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp index 1b5ff9b5bd..126c085521 100644 --- a/src/gui/text/qfontengine.cpp +++ b/src/gui/text/qfontengine.cpp @@ -227,12 +227,10 @@ bool QFontEngine::supportsScript(QChar::Script script) const #if QT_CONFIG(harfbuzz) if (qt_useHarfbuzzNG()) { -#if defined(Q_OS_DARWIN) // in AAT fonts, 'gsub' table is effectively replaced by 'mort'/'morx' table uint len; if (getSfntTableData(MAKE_TAG('m','o','r','t'), 0, &len) || getSfntTableData(MAKE_TAG('m','o','r','x'), 0, &len)) return true; -#endif bool ret = false; if (hb_face_t *face = hb_qt_face_get_for_engine(const_cast(this))) { -- cgit v1.2.3