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

Mark Hung marklh9 at gmail.com
Sun Apr 23 06:01:22 UTC 2017


 sw/source/core/txtnode/fntcache.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 5f62b97ae7891b8c601f6093a1ec5358feb20790
Author: Mark Hung <marklh9 at gmail.com>
Date:   Thu Apr 20 23:40:50 2017 +0800

    tdf#107301: Improve non snap-to-char text rendering.
    
    DrawText ingnores calculated KernArray so the text is cluttered,
    use DrawTextArray instead of DrawText.
    
    Change-Id: I9f7294cd6540257034ac7fcffdaff5b4f2529d8f
    Reviewed-on: https://gerrit.libreoffice.org/36751
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Mark Hung <marklh9 at gmail.com>

diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 03c201afb29e..ec43a811c485 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -1133,16 +1133,16 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
                             {
                                 nSpaceSum += nSpaceAdd;
                                 if( j < i)
-                                    rInf.GetOut().DrawText( aTmpPos, rInf.GetText(),
-                                    rInf.GetIdx() + j, i - j );
+                                    rInf.GetOut().DrawTextArray( aTmpPos, rInf.GetText(),
+                                    pKernArray.get() + j, rInf.GetIdx() + j, i - j );
                                 j = i + 1;
                                 pKernArray[i] = pKernArray[i] + nSpaceSum;
                                 aTmpPos.X() = aTextOriginPos.X() + pKernArray[ i ] + nKernSum;
                             }
                         }
                         if( j < i )
-                            rInf.GetOut().DrawText( aTmpPos, rInf.GetText(),
-                            rInf.GetIdx() +j , i - j );
+                            rInf.GetOut().DrawTextArray( aTmpPos, rInf.GetText(),
+                            pKernArray.get() + j, rInf.GetIdx() +j , i - j );
                     }
                 }
             }


More information about the Libreoffice-commits mailing list