Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Hello good people! I am trying write a visual novel in Bengali/Bangla. I can write the codes in notepad without any problem. but when i run the code in renpy the text 'breaks'. I tried to change the font by editing the following lines in gui.rpy:
## The font used for in-game text.
define gui.text_font = "vrinda.ttf"
## The font used for character names.
define gui.name_text_font = "vrinda.ttf"
## The font used for out-of-game text.
define gui.interface_text_font = "vrinda.ttf"
the fonts were previously dejavusans.ttf which don't support bengali text.
renpy does show bengali text but not entirely accurately.
Imperf3kt wrote: ↑Sat Jun 13, 2020 5:58 pm
When creating your project, which language did you use?
I created the project in English.
When i click on 'new project' renpy says: you will be creating an English language project. Change the launcher language in preference to create a project in another language.
But in preference, I can select a variety of languages but not Bengali
I don't need the entire game(the options and whatnot) in Bengali. I just need the dialogues in Bengali.
define e = Character("Eileen", what_language="western")
define narrator = Character(None, what_language="western")
label start:
# your dialogues such as...
e "the dialogue"
"the dialogue"
define e = Character("Eileen", what_language="western")
define narrator = Character(None, what_language="western")
label start:
# your dialogues such as...
e "the dialogue"
"the dialogue"
Sadly nothing happens. There is no change when I try different values of `what_language`. The English texts(dialogues) also don't change.
Is the English text supposed to change for different values of `what_language` ?
What are the ways of writing foreign texts other than changing the fonts in gui.rpy
Ren'Py doesn't support Bengali text shaping (or text shaping for the other indic scripts). Ren'Py has it's own text layout engine, and those scripts are basically the one major family that it doesn't support yet. That's because the rules for layout are very complicated, and unlike Arabic, there aren't precomposed version of the indic scripts that I can work with.
Right now I don't have plans to work on this. I don't think I could do an acceptable job of it, as I don't understand the orthography or the relevant aspects of this. I'd be very interested if someone wanted to contribute this to Ren'Py, though I'd ask that they contact me, as I think the changes that would need to be made would be very intrusive.
(And if I'm wrong about this, let me know. I know nothing about the indic scripts other than that the have the reputation of being hard to add support for.)
Supporting creators since 2004 (When was the last time you backed up your game?)