How do I change the menu button fonts?

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.
Post Reply
Message
Author
User avatar
GeeSeki
Regular
Posts: 112
Joined: Sat Dec 17, 2016 3:39 am
Projects: A Town Uncovered
itch: geeseki
Contact:

How do I change the menu button fonts?

#1 Post by GeeSeki »

I cannot for the life of me find where in the screens.rpy I have to put

Code: Select all

font "fontchoice.ttf"
.

Just to make sure, I want to change only the font of the 'Start', 'Load', 'Options', 'Exit', etc text buttons. I tried putting it in many different spots and styles but nothing works.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: How do I change the menu button fonts?

#2 Post by Per K Grok »

GeeSeki wrote: Sat Jan 12, 2019 1:57 am I cannot for the life of me find where in the screens.rpy I have to put

Code: Select all

font "fontchoice.ttf"
.

Just to make sure, I want to change only the font of the 'Start', 'Load', 'Options', 'Exit', etc text buttons. I tried putting it in many different spots and styles but nothing works.
The font that are used in the buttons in the navigation field is set in gui.rpy.

Find
define gui.interface_text_font =

It will effect some other places as well, however. I don't of hand know what is effected and what not.

If you want to make certain only the buttons in navigation are effected you could go to 'screen navigation():' in screens.rpy and for each textbutton do this;

textbutton _("{font=fontchoice.ttf}Start{/font}") action Start()

A bit clumsy but it would get the job done.
Another way would be to define a special style for the navigation.

Post Reply

Who is online

Users browsing this forum: tim640