[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Tue Jul 3 15:13:01 UTC 2018


 sc/source/ui/view/output2.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 36eed54d3dfed6551fd2ad944feff7e217c56e82
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Jul 3 15:00:26 2018 +0200

    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 at redhat.com>
    Tested-by: Jenkins

diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index ab6f0065d71c..5177e128ded2 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 );


More information about the Libreoffice-commits mailing list