diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2017-03-18 08:00:04 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2017-03-18 08:00:04 +0200 |
commit | 6c0525ff453464525cf6f5f2778e55b32de20e01 (patch) | |
tree | 045d94c8e618d84c439915ea2a891a3362a6871c /vcl | |
parent | a87f678e7ba525c7725cd2f4cfadfb69bdcd4b34 (diff) |
Move the check to start, clearer this way
Change-Id: I6c7626161d7f8ab8ee2a8a87eea470338861d80e
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/CommonSalLayout.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx index 7ef1fac1286f..07b82dae5302 100644 --- a/vcl/source/gdi/CommonSalLayout.cxx +++ b/vcl/source/gdi/CommonSalLayout.cxx @@ -307,15 +307,16 @@ namespace vcl { VerticalOrientation GetVerticalOrientation(sal_UCS4 cCh, const LanguageTag& rTag) { + // Override fullwidth colon and semi-colon orientation. Tu is preferred. + if ((cCh == 0xff1a || cCh == 0xff1b) && rTag.getLanguage() == "zh") + return VerticalOrientation::TransformedUpright; + uint8_t nRet = 1; if (cCh < 0x10000) { nRet = sVerticalOrientationValues[sVerticalOrientationPages[0][cCh >> kVerticalOrientationCharBits]] [cCh & ((1 << kVerticalOrientationCharBits) - 1)]; - // Override fullwidth colon and semi-colon orientation. Tu is preferred. - if ((cCh == 0xff1a || cCh == 0xff1b) && rTag.getLanguage() == "zh") - nRet = 2; } else if (cCh < (kVerticalOrientationMaxPlane + 1) * 0x10000) { |