[SOLVED] Different fonts for each character

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
Sakkeru
Newbie
Posts: 3
Joined: Sat Aug 24, 2013 5:49 am
Projects: Witch Hunt [starter project]
Location: UK
Contact:

[SOLVED] Different fonts for each character

#1 Post by Sakkeru »

Is it possible to have each character use a different font? I know it's possible to define a font for a particular line, but doing that for the whole thing seems like it's going to be a pain and leaves massive space for messing up. I've tried messing around with Character arguments, but nothing I've tried works. Is it possible to set a font for a character, or will I have to do this manually?

Apologies if this is already answered or obvious.
Last edited by Sakkeru on Sat Aug 24, 2013 1:38 pm, edited 1 time in total.

Levrex
Veteran
Posts: 280
Joined: Mon Jun 18, 2012 12:16 pm
Contact:

Re: Different fonts for each character

#2 Post by Levrex »

what_font.

$ t = Character(None, what_font="CourierNew.ttf")
If your question is solved, please add [Solved] to theme's name by editing its first post, so that the helpful guys out there wouldn't mistakenly think the problem is still unanswered and waste their time.

Sakkeru
Newbie
Posts: 3
Joined: Sat Aug 24, 2013 5:49 am
Projects: Witch Hunt [starter project]
Location: UK
Contact:

Re: [SOLVED] Different fonts for each character

#3 Post by Sakkeru »

Thank you kindly~

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: [SOLVED] Different fonts for each character

#4 Post by OokamiKasumi »

Fonts aren't the only thing you can make individual to a character.

Code: Select all

init:
    define d = Character(None,
        kind=nvl,
        what_font = "Champagne & Limousines Bold.ttf",
        what_color="ffcccc",
        what_size = 24,
        what_drop_shadow = (2, 2,),
        what_prefix="\"",
        what_suffix="\"",
        )
    
    define e = Character(None,
        kind=nvl,
        what_font = "AUBREY1__.TTF",
        what_color="ccffcc",
        what_size = 20,
        what_drop_shadow = (2, 2,),
        what_prefix="\"",
        what_suffix="\"",
        )
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Post Reply

Who is online

Users browsing this forum: Google [Bot]