<div dir="ltr"><div><div><div><div><div><div><div>Hi All,<br><br></div>Right now I am working on fixing RTL dropcap bug, the details here:<br><a href="https://github.com/HOST-Oman/scribus/issues/64" target="_blank">https://github.com/HOST-Oman/<wbr>scribus/issues/64</a><br><br></div>My finding as following:<br>I find from debugging in pageitem_textframe::layout():<br>
in line 2741 when it adds a new line, it increase current.xPos with 
maximum DropCap X  (maxDX) if any. This applies only to lines after the 
line that has DropCap letter. <br>
This doesn't work for RTL text because dropcap letter is in the end of 
line not in beginning ( The drawing text starts form left to right ). 
When we break lines, we need to count (EndX - maxDX ) to set space for 
DropCap letter.<br></div>However, I do that by adding:<br>if (style.direction() == ParagraphStyle::RTL &&  DropLinesCount >= 1)<br>                            EndX = current.endOfLine(m_<wbr>availableRegion, current.rightMargin + maxDX, regionMinY, regionMaxY);<br><br></div>and here a screen shot how the result looks like:<br><a href="https://www.dropbox.com/s/fsuofyllmbmxilj/dropcap-rtl.jpg?dl=0">https://www.dropbox.com/s/fsuofyllmbmxilj/dropcap-rtl.jpg?dl=0</a><br><br></div>Now, there is a problem in DropLinesCount bigger than 1, unlike with mono fonts, the characters are cramping and I didn't find why or how to fix it. please see second text frame. <br><br></div>Any suggestion ?<br><br></div>/Fahad<br><div><div><br><br><div><div><div><div><div><br><br><br></div></div></div></div></div></div></div></div>