Created attachment 126254 [details]
Complex bidirectional text(ex. Arabic) does not render correctly for some fonts on Windows.
1. Open new doc.
2. Copy any paragraph from ar.lipsum.com containing bidirectional text i.e. lines with both english and arabic.
3. Copy and paste into LO.
The text does not render correctly.
Sometimes the text will render correctly but as soon as "Show non printing characters" is selected, the rendering is changed and is not proper.
This only happens with some fonts(ex. Liberation Serif).
With non printing characters set to show, the rendering is almost never right.
Created attachment 126255 [details]
The rendering seems to be broken only for lines which contain bidirectional text.
This bug is most likely in the Uniscribe code path used for complex text layout on Windows.
Note: This bug does not occur in my feature branch. My feature branch does not use uniscribe on windows. So the text layout in RTL right-to-left text renders correctly.
Win 7 Pro 64-bit Version: 220.127.116.11.alpha0+
Build ID: cf0fea5546c9b6b30d18deb084ddaa5e08aad41b
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default;
TinderBox: Win-x86@42, Branch:master, Time: 2016-07-30_23:31:05
Locale: fi-FI (fi_FI); Calc: CL