HOST-Oman/scribus

first line indent does't support RTL text

Fahad-Alsaidi opened this issue · 1 comments

in styles editor when you modify indentation to set first line indent and you have RTL text frame, the new indentation will show as the text frame is LTR. see the screenshot.
first%2520line

I've tried to look into this issue recently. The current logic for First Line Indent is by offsetting X position of the first line using style.firstIndent(). See here. It shifts X form 0 to X += style.firstIndent() which is the simple way to do it in LTR mode.

In RTL mode, the current logic starts typesetting from text frams 's end poting. See here Thus, we need to subtract firstIndent from current RTL's X starting point.