vcl/source/gdi/sallayout.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 983e03a7d81c0ab24782b28ab899452fa6fd99ac
Author: Khaled Hosny <[email protected]>
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;
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits