<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all, <div class=""><br class=""></div><div class="">I was hoping someone who has an understanding of text layout might be able to help me. I have written a unit test for ImplLayoutRuns, but I would like to confirm my approach and understanding is correct. </div><div class=""><br class=""></div><div class="">The patch on gerrit can be found here:</div><div class=""><br class=""></div><div class=""><a href="https://gerrit.libreoffice.org/c/core/+/121204" class="">https://gerrit.libreoffice.org/c/core/+/121204</a></div><div class=""><br class=""></div><div class="">In testImplLayoutRuns_AddPos() I add 7 positions. I assume these are glyph positions. </div><div class=""><br class=""></div><div class="">What I think I’m doing is to setup a run of 3 non-RTL glyphs, then add a fourth RTL marker glyph, which makes a run of three characters with the RTL maker. I then create a non-RTL glyph position. etc.</div><div class=""><br class=""></div><div class="">The code being:</div><div class=""><br class="">ImplLayoutRuns aRuns;<br class="">aRuns.AddPos(1, false);<br class="">aRuns.AddPos(2, false);<br class="">aRuns.AddPos(3, false);<br class="">aRuns.AddPos(4, true); // add RTL marker glyph<br class="">aRuns.AddPos(5, false);<br class="">aRuns.AddPos(6, true); // add RTL marker glyph<br class="">aRuns.AddPos(7, false);<br class=""><br class=""></div><div class=""><br class=""></div><div class="">I believe this creates a run of four LTR glyphs, then a run of 2 RTL glyphs, then a run of two LTR glyphs, and final run of 2 RTL glyphs. </div><div class=""><br class=""></div><div class="">Can I clarify this is correct? And does each run explicitly include the RTL marker as the first glyph position? The test seems to show this. </div><div class=""><br class=""></div><div class="">Chris</div></body></html>