summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-07-03 15:00:26 +0200
committerEike Rathke <erack@redhat.com>2018-07-03 23:30:03 +0200
commit8bb1ab5c4456526e2411ba8f953e41daef8b429b (patch)
tree6bdb3da9d9b20be401b072eac890e2819c6fa61e
parent023554333d98ffe59a9177994a3475ed3efc78dd (diff)
Resolves: tdf#118221 whole cell kerning default is off
So set that at OutputDevice, there is no cell attribute for kerning, all kerning on is handled by EditEngine output. Change-Id: I23ac2b2cf59f3a4651cc9b614df03860a9cb9146 Reviewed-on: https://gerrit.libreoffice.org/56866 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 36eed54d3dfed6551fd2ad944feff7e217c56e82) Reviewed-on: https://gerrit.libreoffice.org/56877
-rw-r--r--sc/source/ui/view/output2.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 49bfb0670dc4..3dfaaa9889f9 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -392,6 +392,10 @@ void ScDrawStringsVars::SetPattern(
if (pOutput->mbSyntaxMode)
pOutput->SetSyntaxColor(&aFont, rCell);
+ // There is no cell attribute for kerning, default is kerning OFF, all
+ // kerning is stored at an EditText object that is drawn using EditEngine.
+ aFont.SetKerning( FontKerning::NONE);
+
pDev->SetFont( aFont );
if ( pFmtDevice != pDev )
pFmtDevice->SetFont( aFont );