From 003a52cc4d37836f87712379a6819f8bf31bbce5 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Sun, 2 Mar 2014 04:11:27 +0200 Subject: Disable 'gsub' table check for AAT fonts on Mac In AAT fonts, 'gsub' table is effectively replaced by 'mort'/'morx' table. Change-Id: Ifa044c8e28c3f2aab0f57ba5e3e6b99ada84d37c Reviewed-by: Lars Knoll --- src/gui/text/qfontengine.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/text') 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; -- cgit v1.2.3