summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-11-04 23:39:38 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-11-04 23:39:38 +0200
commit4e59168ef004e7520ea7d78237a18208216a757c (patch)
tree5c95c257c3c3eb4a581c48b570c522a97a4f0aac
parentf9a2c1c12ecad833c63b894c89d6008907477eb5 (diff)
tdf#103710: rotate all glyphs in vertical runs
So that we base the rotation or not based on the resolved script, instead of using the outdated and hard-coded ranges in GetVerticalFlags. Change-Id: I52ee38c4151f30d98287e64f852b4d2df143c719
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index bcd8c78284cf..a6cf73924ca9 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -545,16 +545,7 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
DeviceCoordinate nAdvance, nXOffset, nYOffset;
if (bVertical)
{
- int nVertFlag;
-#if 0 /* XXX: does not work as expected for Common script */
- UErrorCode error = U_ZERO_ERROR;
- nVertFlag = GetVerticalFlagsForScript(uscript_getScript(aChar, &error));
-#else
- nVertFlag = GetVerticalFlags(aChar);
- if (nVertFlag == GF_ROTR)
- nVertFlag = GF_ROTL;
-#endif
- nGlyphIndex |= nVertFlag;
+ nGlyphIndex |= GF_ROTL;
nAdvance = -pHbPositions[i].y_advance * nYScale;
nXOffset = pHbPositions[i].y_offset * nYScale;
nYOffset = -pHbPositions[i].x_offset * nXScale;