Bug 428034

Summary: "Align Left" in Krita keeps the text right-aligned for RTL languages
Product: [Applications] krita Reporter: Munzir Taha <munzirtaha>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: griffinvalley, munzirtaha, sh.yaron
Priority: NOR Keywords: rtl, triaged
Version: 4.4.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Munzir Taha 2020-10-20 20:33:24 UTC
SUMMARY
Left and Right has the same meaning for Arabic as other languages. However, "Align Left" in Krita keeps the text aligned right for Arabic (RTL). Krita chose to use SVG's attribute text-anchor:start instead of text-anchor:left when left is explicitly chosen. The same applies for right. text-anchor:start only makes sense when no alignment explicitly chosen.

STEPS TO REPRODUCE
1. Choose SVG Text Tool.
2. Type Arabic text. (Result: text is right-aligned which is correct).
3. Click the "Align Left" button. (Result: Nothing changed where it should left-align).

OBSERVED RESULT
Text is right-aligned

EXPECTED RESULT
Text should be left-aligned after clicking "Align Left"

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.74
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Calligra Words does the alignment correctly so it can be used as a reference.