Bug 428034 - "Align Left" in Krita keeps the text right-aligned for RTL languages
Summary: "Align Left" in Krita keeps the text right-aligned for RTL languages
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 4.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: rtl, triaged
Depends on:
Blocks:
 
Reported: 2020-10-20 20:33 UTC by Munzir Taha
Modified: 2021-09-19 04:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.