Good evening! I am still new to using Ren'py. I made my first game without customizing the GUI so for my new game I want play around with interface.
That said, I am currently having issues with the font. I managed to change the DejaVuSans font to my desired main game font in the gui.rpy, but I'm having difficulty changing fonts for different characters (A robot and the villain).
In another thread from 2010, user sake-bento stated that you'd have to use this code for different character fonts ->
$ art = Character("King Arthur", what_font="MyFont.ttf")
I'm not sure if I put the code in the wrong place (before label start. It did not work after label start though), or if it's incompatible with the recently updated Ren'py.
Thank you for reading!
Changing fonts for specific Characters? [Resolved]
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.
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.
- numituwi
- Newbie
- Posts: 12
- Joined: Tue Sep 26, 2017 12:15 am
- Completed: Pink Lens, Red Hands
- Projects: Keep Your Head On!
- Tumblr: numituwi
- itch: numitumi
- Location: USA
- Contact:
Changing fonts for specific Characters? [Resolved]
Last edited by numituwi on Sun Oct 08, 2017 1:57 pm, edited 1 time in total.
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Changing fonts for specific Characters?
Presuming the font exists as that name within the main game folder, just swap to using define
Code: Select all
define art = Character("King Arthur", what_font="MyFont.ttf")
#
#
label start:
art "Does it work?"Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
- numituwi
- Newbie
- Posts: 12
- Joined: Tue Sep 26, 2017 12:15 am
- Completed: Pink Lens, Red Hands
- Projects: Keep Your Head On!
- Tumblr: numituwi
- itch: numitumi
- Location: USA
- Contact:
Re: Changing fonts for specific Characters?
You're a life saver! Thank you!Remix wrote: ↑Sun Oct 08, 2017 6:35 amPresuming the font exists as that name within the main game folder, just swap to using define
Code: Select all
define art = Character("King Arthur", what_font="MyFont.ttf") # # label start: art "Does it work?"
Who is online
Users browsing this forum: Google [Bot], _ticlock_