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 <ritt.ks@gmail.com>bb10
parent
21c242f9fd
commit
963c47aece
|
|
@ -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<QFontEngine *>(this))) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue