summaryrefslogtreecommitdiff
path: root/vcl/inc/font
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-07-30 10:38:43 +0200
committerTomaž Vajngerl <quikee@gmail.com>2018-07-31 18:29:39 +0200
commit74317ed5f794816bc9b33e087c5412833fbba420 (patch)
treeb192e0a424d3434d3cbc8cc0db17029b9d640554 /vcl/inc/font
parentaa2e694e8d9e22de94dbf21f81883f9af0e34ce9 (diff)
Font features: Use Graphite instead of HarfBuzz if available
When searching for font features, use Graphtie if it is available instead of HarfBuzz, because HarfBuzz will only give a subset of OpenType features in a Graphite font, but will ignore additional features specific to Graphite. Change-Id: I00c8790ee4d1e1ab906928f649d2a3e54163557f Reviewed-on: https://gerrit.libreoffice.org/58306 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc/font')
-rw-r--r--vcl/inc/font/FeatureCollector.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/font/FeatureCollector.hxx b/vcl/inc/font/FeatureCollector.hxx
index 6c278ca15188..aa6f51c3d83b 100644
--- a/vcl/inc/font/FeatureCollector.hxx
+++ b/vcl/inc/font/FeatureCollector.hxx
@@ -37,15 +37,15 @@ public:
}
private:
- bool collectGraphiteFeatureDefinition(vcl::font::Feature& rFeature);
-
void collectForLanguage(hb_tag_t aTableTag, sal_uInt32 nScript, hb_tag_t aScriptTag,
sal_uInt32 nLanguage, hb_tag_t aLanguageTag);
void collectForScript(hb_tag_t aTableTag, sal_uInt32 nScript, hb_tag_t aScriptTag);
+ void collectForTable(hb_tag_t aTableTag);
+ bool collectGraphite();
public:
- void collectForTable(hb_tag_t aTableTag);
+ bool collect();
};
} // end namespace font