Page 1 of 1
How to display specific words or phrases in Japanese font when I want it to?
Posted: Sat Dec 19, 2020 4:23 pm
by kuroshirushi
Ok so I'm kinda new to ren'py and I'm trying to get my game to display Japanese fonts but only when I want it to. The game is in English but I want a specific word or phrases to be said in Japanese in the dialogue. For example, if I wanted a phrase to be said like "悪因悪果" which means “Evil cause, evil effect” which would be said a few times in the game but is later translated and explained because it bares significance to the story. How do I achieve this? Sorry for the long text and I hope I'm making sense
Re: How to display specific words or phrases in Japanese font when I want it to?
Posted: Sat Dec 19, 2020 4:29 pm
by gas
You can use a variable.
Code: Select all
default tense = "悪因悪果"
label start:
"Beware of this: [tense]"
$ tense = “Evil cause, evil effect”
"Well, I was meaning: [tense]"
Re: How to display specific words or phrases in Japanese font when I want it to?
Posted: Sun Dec 20, 2020 7:47 am
by Imperf3kt
You can change fonts anywhere using the font text tag.
https://www.renpy.org/doc/html/text.html#text-tag-font
Re: How to display specific words or phrases in Japanese font when I want it to?
Posted: Wed Dec 23, 2020 10:34 pm
by kuroshirushi
Thank you I'll give it a try