Renpy Fonts

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,557
Hi all, I changed the gui.interface_text_font to change the font on the title page, which is all fine. However when I use "texbutton" in my screens it uses that font, where if I use "text" it doesn't.

05-03-2019 23-35-26.png
The Friendship and lust is text "Friendship" and text "Lust" where as the Gallery is Textbutton "Gallery" Can I change the font for a specific text on the fly, as in Textbutton Gallery font = Somefont. I have tried a few things but could not get it to work.

Cheers in advanced
 

Jon_Sleeper

Member
Nov 14, 2018
284
364
change this
Code:
define gui.text_font = "dance.otf"
If you want to change character names as well then
Code:
define gui.name_text_font = "DejaVuSans.ttf"
 

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,557
@Jon_Sleeper
define gui.text_font is what I used to change the font for Friendship and Lust, what I mean when I use "textbutton" it is using the gui.interface_text font, which I don't want it too.
 

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,557
@recreation I just googled renpy text style and you are on the money, one of the style properties is font, I just gotta work out how to put it in now.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,976
16,232
I just gotta work out how to put it in now.
Python:
style button_text:
    font "dance.otf"
This should do it normally. But it's almost time to wake up and I still haven't slept, so no guaranties.