A noob question ?

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
dales
Newbie
Posts: 4
Joined: Sun Apr 03, 2005 12:43 am
Contact:

A noob question ?

#1 Post by dales »

I'm a newbie here, so i have some stupid questions:
could i use my own font for Ren'Py ? How to use it ?
Thanks for reading :)

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#2 Post by PyTom »

Ren'Py supports the use of truetype fonts. It can use a file you supply, or a font that is available on your system. The former is preferred, if the font is one you can freely distribute. The latter may be necessary if you can't redistribute the font.

You change the font by changing the font style property. It usually makes sense to do this on the default style.

To change the default font to the one contained in galactica.ttf in the game directory, add to the init block at the start of your script the line:

Code: Select all

$ style.display.font = "galactica.ttf"
If you want to use Arial as your font, write:

Code: Select all

$ style.display.font = "Arial"
You may want to delete common/Vera.ttf if it is unused.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Ocelot