Different 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
H.S.
Newbie
Posts: 8
Joined: Fri Aug 10, 2012 4:55 am
Location: Russia
Contact:

Different fonts

#1 Post by H.S. »

Please, tell me, how to use different fonts in game menu, narrator's texts and dialogues? I do not find this option and in cookbook not exist this recipe.

User avatar
nottiebutt
Regular
Posts: 40
Joined: Thu Jul 26, 2012 12:12 am
Location: Tasmania, Australia
Contact:

Re: Different fonts

#2 Post by nottiebutt »

style.default.font = "[file].ttf"

H.S.
Newbie
Posts: 8
Joined: Fri Aug 10, 2012 4:55 am
Location: Russia
Contact:

Re: Different fonts

#3 Post by H.S. »

nottiebutt wrote:style.default.font = "[file].ttf"
No, this line change all text. I want, for example, use in game menu Times New Roman, in narrator text Mistral, in dialogues - Mistral Bold.

User avatar
Deji
Cheer Idol; Not Great at Secret Identities
Posts: 1592
Joined: Sat Oct 20, 2007 7:38 pm
Projects: http://bit.ly/2lieZsA
Organization: Sakevisual, Apple Cider, Mystery Parfait
Tumblr: DejiNyucu
Deviantart: DejiNyucu
Location: Chile
Contact:

Re: Different fonts

#4 Post by Deji »

I styled the Name front with this line:

Code: Select all

style.say_label.font="fonts/Copse-Regular.ttf"
Here, say_label is the name of the "character name" element. I'm pretty sure if you dig around the documentation you'll find the names of the other elements and will be able to style them accordingly (:
Image
Tumblr | Twitter
Forever busy :')
When drawing something, anything, USE REFERENCES!! Use your Google-fu!
Don't trust your memory, and don't blindly trust what others teach you either.
Research, observation, analysis, experimentation and practice are the key! (:

Post Reply

Who is online

Users browsing this forum: No registered users