summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-09-08 16:28:17 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-09-09 17:21:15 +0200
commit983e03a7d81c0ab24782b28ab899452fa6fd99ac (patch)
tree11c07f009e4151924eaac6750bb80bb8a7280d9a
parent8e11d353665242fc90ef485ff8f67a44206b6393 (diff)
Hack to make Arabic subtending marks work
E.g. in Amiri. Change-Id: Ibdac6b02bdbae40786d7c2c4725641be5cbfb80d
-rw-r--r--vcl/source/gdi/sallayout.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 8aaefbfdb4ee..ea16f4fca659 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -1031,6 +1031,10 @@ void GenericSalLayout::ApplyDXArray( ImplLayoutArgs& rArgs )
nDelta += nDiff;
}
+ // Hack to make Arabic subtending marks work e.g. in Amiri.
+ if (nNewClusterWidth != nOldClusterWidth && nNewClusterWidth == 0)
+ m_GlyphItems[i].maLinearPos.X() += m_GlyphItems[i].mnXOffset;
+
nNewPos += nNewClusterWidth;
}