Seperate Fonts Per Character
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.
Seperate Fonts Per Character
Is there any way to get a character to speak in a font different than the others? For example, if you had a character that spoke an "unknown language" and their dialogue appeared as wingdings?
-
- Regular
- Posts: 100
- Joined: Fri Oct 02, 2009 2:32 pm
- Projects: American Jurassic
- Organization: Pier 7 Media
- Location: Arizona
- Contact:
Re: Seperate Fonts Per Character
If all you're aiming for is having a character speak in dingbats, most of them were incorporated into unicode and therefore are likely to appear in the default font Ren'Py uses (Vera Sans).
- 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:
Re: Seperate Fonts Per Character
One annoying bit is that they appear as high characters, rather than just being different shapes for the ascii characters. So you have to use the unicode escapes (like \u26a3) to get at them.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: Seperate Fonts Per Character
To answer your question, you can give characters their own font when you define them:
Code: Select all
$ a = Character("Adam", font="myfont.tff")
-
- Newbie
- Posts: 1
- Joined: Sat Dec 11, 2010 10:53 pm
- Contact:
Re: Seperate Fonts Per Character
So, I also want to have a character that speaks in a different font, only when I did that thing you just said, it made their name have a different font, not their speech.Aleema wrote:To answer your question, you can give characters their own font when you define them:Code: Select all
$ a = Character("Adam", font="myfont.tff")
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: Seperate Fonts Per Character
Intriguing! I rarely use that function.
Use "what_font" instead of "font" and it should work.
Use "what_font" instead of "font" and it should work.
Who is online
Users browsing this forum: Google [Bot]