Bolding the Chapter Names on Save & Load Screens

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
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

Bolding the Chapter Names on Save & Load Screens

#1 Post by sasquatchii »

Hello! I am working on designing the save & load screens for a game, and was wondering if it would be possible to have the time and date in regular text, and the chapter name in bolded text, as shown below:

Image

If this is possible, how would I go about making the chapter names bold? The font that I am using is called Montserrat and has a bold variation that I would like to use for this.

Thanks for reading! Any help is much appreciated.
ImageImage

User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Re: Bolding the Chapter Names on Save & Load Screens

#2 Post by mitoky »

I may be wrong on this but wouldnt adding a seperate style for the chapter name work and add bold to it?
https://www.renpy.org/doc/html/text.htm ... -text-tags

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Bolding the Chapter Names on Save & Load Screens

#3 Post by xavimat »

In your screens.rpy file search for this line:

Code: Select all

style slot_name_text is slot_button_text
Add a colon and a new line. This way:

Code: Select all

style slot_name_text is slot_button_text:
    font "MontserratBold.ttf"  # If your font is in the "gui" folder write "gui/MontserratBold.ttf"
(Of course, change the name of the file in my example to the actual name)

Note that using "bold" on a regular font is not the same as using the bold version of the font, that is another font-file.
If you have in your game the {b}bold{/b} text-tag it won't use by default the bold-font version but renpy will make thicker the regular-version (sometimes that can be ugly, and always is uglier than the actual Bold-version of the font, if it exists).
To use different font-files for bold, italic and bold+italic you need to use config.font_replacement_map:
https://www.renpy.org/doc/html/config.h ... cement_map
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Rhapsy