How to change font for nvl mode only?

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
Reikun
Miko-Class Veteran
Posts: 565
Joined: Tue Dec 20, 2011 9:57 pm
Completed: Mnemonic Devices, Ciikos Bridge, Helena's Flowers, The Madness
Projects: Fox in the Hollyhocks
Organization: skyharborr
itch: skyharborr
Contact:

How to change font for nvl mode only?

#1 Post by Reikun »

Hi,

I use an nvl_narrator character for nvl mode (no character dialogue in nvl mode, so only this one narrator character). I want to change the font for only this nvl_narrator character. Is there a way to set the nvl mode font globally with some kind of gui variable or can I define the font in the nvl_narrator character definition? I'm not sure how it should be written.
ImageImageImage

fastest way to contact me: DM @skyharborr on twitter

User avatar
Dark12ose
Regular
Posts: 63
Joined: Mon Oct 04, 2021 11:29 pm
Deviantart: Rosentear
Contact:

Re: How to change font for nvl mode only?

#2 Post by Dark12ose »

You can change the font two ways.

One is place what_font = "fontname.ttf" in your character define.

The 2nd is place font "fontname.ttf" in style nvl_dialogue under screen nvl()

Make sure you place the font file in the game folder.
Note: My mind can be all over the place while I'm writing as I think. If what you read is unclear do tell it to my face :lol:

User avatar
Reikun
Miko-Class Veteran
Posts: 565
Joined: Tue Dec 20, 2011 9:57 pm
Completed: Mnemonic Devices, Ciikos Bridge, Helena's Flowers, The Madness
Projects: Fox in the Hollyhocks
Organization: skyharborr
itch: skyharborr
Contact:

Re: How to change font for nvl mode only?

#3 Post by Reikun »

I did the second option. It works perfect! Thank you so much
ImageImageImage

fastest way to contact me: DM @skyharborr on twitter

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Milkymalk