[Libreoffice-commits] core.git: vcl/source
Khaled Hosny
khaledhosny at eglug.org
Fri Sep 9 15:21:57 UTC 2016
vcl/source/gdi/sallayout.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 983e03a7d81c0ab24782b28ab899452fa6fd99ac
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Thu Sep 8 16:28:17 2016 +0200
Hack to make Arabic subtending marks work
E.g. in Amiri.
Change-Id: Ibdac6b02bdbae40786d7c2c4725641be5cbfb80d
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 8aaefbf..ea16f4f 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;
}
More information about the Libreoffice-commits
mailing list