diff options
author | Mark Hung <marklh9@gmail.com> | 2016-10-16 11:25:04 +0800 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-10-17 07:44:46 +0000 |
commit | 6130ff73347b5e633babf9555ee1417462cc11ef (patch) | |
tree | 53a6afad6c020f0e90a2e1d1d95f73784e89c47d /sw/source/core/inc | |
parent | 4ac1a406a78f58c8fba4040c960091e2af4a390b (diff) |
tdf#43740 Don't add space after ininvisible characters.
Move CJK justify code in SwFntObj::DrawText to
SwScriptInfo::CJKJustfiy() and use break iterator to
prevent unecessary space.
Change-Id: Ifd25373530fc97d3ce547ee3cd0484d4a852491c
Reviewed-on: https://gerrit.libreoffice.org/29911
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'sw/source/core/inc')
-rw-r--r-- | sw/source/core/inc/scriptinfo.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/inc/scriptinfo.hxx b/sw/source/core/inc/scriptinfo.hxx index 962a87f68eb1..983c1c39b4fc 100644 --- a/sw/source/core/inc/scriptinfo.hxx +++ b/sw/source/core/inc/scriptinfo.hxx @@ -353,6 +353,12 @@ public: long nSpaceAdd = 0 ); static sal_Int32 CountCJKCharacters( const OUString &rText, sal_Int32 nPos, sal_Int32 nEnd, LanguageType aLang); + + static void CJKJustify( const OUString& rText, long* pKernArray, + long* pScrArray, sal_Int32 nStt, + sal_Int32 nLen, LanguageType aLang, + long nSpaceAdd ); + static SwScriptInfo* GetScriptInfo( const SwTextNode& rNode, bool bAllowInvalid = false ); |