Other language fonts

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
ZinniaAuRevoir
Regular
Posts: 40
Joined: Sat May 19, 2012 6:58 am
Projects: *shrugs* I have my own way of doing things
Organization: None yet
Location: In my mini library at home
Contact:

Other language fonts

#1 Post by ZinniaAuRevoir »

I'm sorry if I'm a bit late. I'm in a middle of 'languages practice' project and when I'm about to write Arabic in Ren'py, it turns out to be separated fonts, not forming a word. Well, this is the one I want;
Image

When I type into the script, it turns out to be like this:
Image

I want to polish my writing skills in Arabic because I took a course require this language. Since it's boring to read just plain words, I want to make it as a kinetic novel so I can share it with others while improving my skill. So, what comes to my mind is, does Ren'Py can support this language or is there something I can do that makes this language can be used?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Other language fonts

#2 Post by PyTom »

Try:

Code: Select all

init python:
    config.rtl = True
That will turn on RTL mode, which also handles ligaturization. You may also want to adjust xalign and text_align on various text-like things to right-align them.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

ZinniaAuRevoir
Regular
Posts: 40
Joined: Sat May 19, 2012 6:58 am
Projects: *shrugs* I have my own way of doing things
Organization: None yet
Location: In my mini library at home
Contact:

Re: Other language fonts

#3 Post by ZinniaAuRevoir »

Gee, thanks, Py Tom! But there's one problem; It's hard to type in the script. If I type 'abc', it became 'cba'. No problem when I play the game, but it's hard to type in script with this kind of problem.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Other language fonts

#4 Post by PyTom »

I think you may need to look for a text editor that support Arabic better. Try editra, jedit, and then maybe look further afield? The combination of RTL and ligaturization makes Arabic tough to support, so not a lot of tools do it.

Although it's a terrible way to work, you might be able to write the text in a word processor, and then copy and paste it in to editra or jedit.

سلام‎!
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

ZinniaAuRevoir
Regular
Posts: 40
Joined: Sat May 19, 2012 6:58 am
Projects: *shrugs* I have my own way of doing things
Organization: None yet
Location: In my mini library at home
Contact:

Re: Other language fonts

#5 Post by ZinniaAuRevoir »

Gee, thanks a ton! :D

Post Reply

Who is online

Users browsing this forum: No registered users