Hi there,
I'm wondering if there's a way of changing the font used in my game's History/Log section? Currently it uses the font I've defined for "out-of-game text" in the gui.rpy:
Code: Select all
## The font used for out-of-game text.
define gui.interface_text_font = "menufont.ttf"
So I'm hoping to use a more universal font for my History section, the problem is I don't know how to JUST change the font in the History section.
I tried playing around with variations on:
Code: Select all
#define gui.history_text_font = "universalfont.ttf"
SOLUTION: Under "style history_text:" in the screens.rpy, I added:
Code: Select all
font "DejaVuSans.ttf"
Code: Select all
style history_text:
xpos gui.history_text_xpos
ypos gui.history_text_ypos
xanchor gui.history_text_xalign
xsize gui.history_text_width
min_width gui.history_text_width
text_align gui.history_text_xalign
layout ("subtitle" if gui.history_text_xalign else "tex")
font "DejaVuSans.ttf"