-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RTL text support and fa locale #2297
Conversation
Add FA (Persian) Locale
Add RTL text support for all section of godot engine. for use rtl text in godot engine import a font that contains arabic glyphs and use that for editor font or gui font. (godot default fonts not contains arabic glyphs)
I was not very familiar with licenses. |
Update from original
Create new bidi class and use that in text rendering. and fix some bugs.
bidi changed , what's your opinion. |
I wrote RTL support with firbidi some time ago , but I think this bidi is awesome , @masoudbh did you implement earab too? I write it in persian so you know what I mean. |
fixe earab (fatha,kasra,shada,...) positions and nsm type in start of paragraph problem. add some comment for license.
this bidi class derived from fribidi library code with some bug fixes. this class is a demo. |
the class support earab but godot does not .every letter is going to move
cursor forward but when you type earab cursor should not mive and every
letter should be typed in the same exact spot. I write it today using
fribidi. I can change using your code from bidi. is bidi algorithm does
have a license or not?
|
Add RTL text support for all section of godot engine.
for use rtl text in godot engine import a font that contains arabic
glyphs and use that for editor font or gui font. (godot default fonts
not contains arabic glyphs)
Before :
After :
and add fa (persian) locale.