diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2018-06-17 15:48:14 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-06-18 14:53:45 +0200 |
commit | 80e9f9f8d8cc3e1073f98b1413bc0b80b93ec4f9 (patch) | |
tree | ed34b6b1d226b6944a718b54df8d292d0708f501 /vcl/qa/cppunit/FontFeatureTest.cxx | |
parent | ba161dd0c1117915977fb2a8d6ea6adb37026a19 (diff) |
Skip required features from the features dialog
Many OpenType features are required features that are applied to certain
context determined by the layout engine, or should always be on. There
is no value in presenting these features to the user and they just
clutter the dialog for fonts that usually have many of such features
(e.g. Arabic or Indic fonts).
Change-Id: Idc3d7d3a9eb1c4f693ea6fdf9f26f0264b910f91
Reviewed-on: https://gerrit.libreoffice.org/55951
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/FontFeatureTest.cxx')
-rw-r--r-- | vcl/qa/cppunit/FontFeatureTest.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/qa/cppunit/FontFeatureTest.cxx b/vcl/qa/cppunit/FontFeatureTest.cxx index 63cc4913bb8d..5ab293574d71 100644 --- a/vcl/qa/cppunit/FontFeatureTest.cxx +++ b/vcl/qa/cppunit/FontFeatureTest.cxx @@ -59,12 +59,12 @@ void FontFeatureTest::testGetFontFeatures() } } - CPPUNIT_ASSERT_EQUAL(size_t(31), rDefaultFontFeatures.size()); + CPPUNIT_ASSERT_EQUAL(size_t(27), rDefaultFontFeatures.size()); - OUString aExpectedFeaturesString = "aalt c2sc case ccmp dlig fina frac hlig " - "liga lnum nalt onum pnum salt sinf smcp " - "ss01 ss02 ss03 ss04 ss05 ss06 sups tnum " - "zero cpsp kern lfbd mark mkmk rtbd "; + OUString aExpectedFeaturesString = "aalt c2sc case dlig frac hlig liga lnum " + "nalt onum pnum salt sinf smcp ss01 ss02 " + "ss03 ss04 ss05 ss06 sups tnum zero cpsp " + "kern lfbd rtbd "; CPPUNIT_ASSERT_EQUAL(aExpectedFeaturesString, aFeaturesString); // Check C2SC feature @@ -83,7 +83,7 @@ void FontFeatureTest::testGetFontFeatures() // Check FRAC feature { - vcl::font::Feature& rFeature = rDefaultFontFeatures[6]; + vcl::font::Feature& rFeature = rDefaultFontFeatures[4]; CPPUNIT_ASSERT_EQUAL(vcl::font::featureCode("frac"), rFeature.m_aID.m_aFeatureCode); vcl::font::FeatureDefinition& rFracFeatureDefinition = rFeature.m_aDefinition; |