Revert "tdf#163213: do not show OpenType features if the font has "morx" table"

Reason: regression
See https://bugs.documentfoundation.org/show_bug.cgi?id=163213#c14

This reverts commit 0679a5cee1.

Change-Id: Ib1392e2ad44577f69e6197bad8ae79791f072086
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174435
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet
2024-10-03 19:30:58 +02:00
parent 94c33fb4f2
commit 378dd9025e
+1 -4
View File
@@ -14,7 +14,6 @@
#include <font/OpenTypeFeatureStrings.hrc>
#include <svdata.hxx>
#include <hb-aat.h>
#include <hb-ot.h>
#include <hb-graphite2.h>
@@ -196,9 +195,7 @@ bool FeatureCollector::collect()
}
else
{
// tdf#163213: Font Features dialog should not show OpenType features if the font has "morx" table
if (!hb_aat_layout_has_substitution(m_pHbFace))
collectForTable(HB_OT_TAG_GSUB); // substitution
collectForTable(HB_OT_TAG_GSUB); // substitution
collectForTable(HB_OT_TAG_GPOS); // positioning
return true;
}