summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-08-23 22:35:10 +0200
committerTomaž Vajngerl <quikee@gmail.com>2022-08-25 13:02:14 +0200
commit7581fcde3c6a8d098a37b2c89c74e54696d4c346 (patch)
tree62b0089ca277eb4a2c22af769669ce2d8514d56f /vcl/workben
parent187be4a26f38af6a0c8751a096379978e269a83a (diff)
FeatureCollector: Simplify
We are not using the script or language information for anything, so we can use HarfBuzz API to query the GSUB/GPOS tables directly. Change-Id: Ie68c51a1662494ba33ec192edb78afa0d8added4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138745 Tested-by: خالد حسني <khaled@aliftype.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/listfonts.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/vcl/workben/listfonts.cxx b/vcl/workben/listfonts.cxx
index b76bdd4a2c92..00ab5a39120d 100644
--- a/vcl/workben/listfonts.cxx
+++ b/vcl/workben/listfonts.cxx
@@ -397,13 +397,8 @@ int ListFonts::Main()
std::cout << "\t"
<< (feature.m_eType == vcl::font::FeatureType::OpenType ? "OpenType"
: "Graphite")
- << " Feature:\n\t\tId = { feature code = "
- << vcl::font::featureCodeAsString(feature.m_aID.m_aFeatureCode)
- << ", script code = "
- << vcl::font::featureCodeAsString(feature.m_aID.m_aScriptCode)
- << ", language code = "
- << vcl::font::featureCodeAsString(feature.m_aID.m_aLanguageCode)
- << " }\n";
+ << " Feature:\n\t\t"
+ << vcl::font::featureCodeAsString(feature.m_nCode) << "\n";
std::cout << "\t\tDescription: " << feature.m_aDefinition.getDescription()
<< "\n";