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 <lars.knoll@digia.com>
bb10
Konstantin Ritt 2014-03-02 04:11:27 +02:00 committed by The Qt Project
parent 0b4ea1ca9c
commit 003a52cc4d
1 changed files with 9 additions and 0 deletions

View File

@ -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;