summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qfontengine.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp
index ed758f6f0f..316b491e18 100644
--- a/src/gui/text/qfontengine.cpp
+++ b/src/gui/text/qfontengine.cpp
@@ -359,6 +359,15 @@ bool QFontEngine::supportsScript(QChar::Script script) const
return true;
}
+#ifdef Q_OS_MAC
+ {
+ // 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
+
#ifdef QT_ENABLE_HARFBUZZ_NG
if (useHarfbuzzNG) {
bool ret = false;