Ren'Py Set font only for the russian language

Black Ram oss

Black Ram
Game Developer
May 10, 2018
582
1,564
I'm using a font in the main menu and settings, but it doesn't support russian.
how do you set the default font only for the russian language?
Python:
style slot_button_text:
    properties gui.button_text_properties("slot_button")
    font "fonts/Bangers.ttf"
 

powd

New Member
Game Developer
Oct 29, 2019
8
33
If you're using the Ren'Py translation system for the language, you can change styles' fonts based on language with the translate block:

Python:
translate russian style default:
    font "russianfont.ttf"
Just change the language name, which style you want to modify and the font name.
 

Black Ram oss

Black Ram
Game Developer
May 10, 2018
582
1,564
I meant by the Cyrillic characters. however I have already solved it like this:
Python:
 define gui.interface_text_font = FontGroup().add("fonts/Bangers.ttf", 0x0000, 0x007f).add("fonts/Bangers.ttf", 0x00E0, 0x00f9).add("fonts/Bangers.ttf", 0x200b, 0x200b).add("fonts/Buran USSR.ttf", 0x0400, 0x04ff)

thanks anyway.
 
Last edited:
  • Like
Reactions: powd