diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2017-02-12 11:08:59 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-14 14:50:12 +0000 |
commit | ded07624096183ed310187f29d4692bb39b7d24a (patch) | |
tree | 97cd5a53d45253defc9b3e45716b85014253c281 /vcl/source/font | |
parent | d3b9b4e41e31ce276d2d7354602a586b300adee9 (diff) |
tdf#105454: Stop ignoring font kerning setting
Make sure the default is for kerning to be enable, and honor the setting
to disable it.
This also updates the expectations for chart2_xshape tests for file that
had kerning disabled and was previously ignored.
Change-Id: Icf6bb75e71cae43868fba323ca3c61e4a3e81523
Reviewed-on: https://gerrit.libreoffice.org/34169
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl/source/font')
-rw-r--r-- | vcl/source/font/font.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx index 3db74fce047a..84aeb02baabe 100644 --- a/vcl/source/font/font.cxx +++ b/vcl/source/font/font.cxx @@ -211,7 +211,7 @@ void Font::SetKerning( FontKerning eKerning ) bool Font::IsKerning() const { - return bool(mpImplFont->meKerning & FontKerning::FontSpecific); + return !(mpImplFont->meKerning == FontKerning::NONE); } void Font::SetWeight( FontWeight eWeight ) @@ -729,7 +729,7 @@ ImplFont::ImplFont() : meStrikeout( STRIKEOUT_NONE ), meRelief( FontRelief::NONE ), meEmphasisMark( FontEmphasisMark::NONE ), - meKerning( FontKerning::NONE ), + meKerning( FontKerning::FontSpecific ), meCharSet( RTL_TEXTENCODING_DONTKNOW ), maLanguageTag( LANGUAGE_DONTKNOW ), maCJKLanguageTag( LANGUAGE_DONTKNOW ), |