diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-07-30 10:38:43 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-07-31 18:29:39 +0200 |
commit | 74317ed5f794816bc9b33e087c5412833fbba420 (patch) | |
tree | b192e0a424d3434d3cbc8cc0db17029b9d640554 /vcl/source/outdev/font.cxx | |
parent | aa2e694e8d9e22de94dbf21f81883f9af0e34ce9 (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/source/outdev/font.cxx')
-rw-r--r-- | vcl/source/outdev/font.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index d8015f6de0fa..de8fae5a578d 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -194,8 +194,7 @@ bool OutputDevice::GetFontFeatures(std::vector<vcl::font::Feature>& rFontFeature const LanguageType eOfficeLanguage = Application::GetSettings().GetLanguageTag().getLanguageType(); vcl::font::FeatureCollector aFeatureCollector(pHbFace, rFontFeatures, eOfficeLanguage); - aFeatureCollector.collectForTable(HB_OT_TAG_GSUB); // substitution - aFeatureCollector.collectForTable(HB_OT_TAG_GPOS); // positioning + aFeatureCollector.collect(); return true; } |