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
parent
0b4ea1ca9c
commit
003a52cc4d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue