Applying" 「" and "」" to text

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
User avatar
andrewngn13
Regular
Posts: 65
Joined: Thu Nov 13, 2014 2:41 pm
Projects: Recast
Skype: andrewngn13
Location: Glued to my desktop
Contact:

Applying" 「" and "」" to text

#1 Post by andrewngn13 »

It might seem a bit odd, but I've gotten pretty used to visual novels using 「」 to distinguish between what is spoken out loud and what's a characters thoughts. Putting these characters in only gets me a box to show up though. How can I fix that?
"Feel feel to idea-bounce off me."
No, like seriously, just send a pm and I'll respond what I think. I'm open to reading anything.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Applying" 「" and "」" to text

#2 Post by xavimat »

Be sure that your font has those characters.
You can use what_prefix and what_suffix in the character definitions to have this kind of things done automatically.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
andrewngn13
Regular
Posts: 65
Joined: Thu Nov 13, 2014 2:41 pm
Projects: Recast
Skype: andrewngn13
Location: Glued to my desktop
Contact:

Re: Applying" 「" and "」" to text

#3 Post by andrewngn13 »

I've found a font with support for the characters, MS Gothic. However, setting the font for all characters say will still show up as a box.

Code: Select all

style say_label font "MS Gothic.ttf"
When creating the character with what_font though, the character shows up properly.

Code: Select all

define l = Character('Lena', color="#c8ffc8", ctc="ctc_blink", what_font="MS Gothic.ttf")
The characters in question being 「」. Am I going to have to create every character with a what_font argument to get my characters to show up properly?
"Feel feel to idea-bounce off me."
No, like seriously, just send a pm and I'll respond what I think. I'm open to reading anything.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Applying" 「" and "」" to text

#4 Post by xavimat »

andrewngn13 wrote:

Code: Select all

style say_label font "MS Gothic.ttf"
I think that code is not correct. Try to find the correct style definition (I'm no good with styles)
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Applying" 「" and "」" to text

#5 Post by gas »

andrewngn13 wrote:Am I going to have to create every character with a what_font argument to get my characters to show up properly?
No, you can just define it once in the special character name adv.

Code: Select all

define adv = Character(None, what_prefix='"', what_suffix='"')
and all adv characters will inherit the definitions (like a what_prefix and/or what_suffix). Please note you need to do so for the narrator character and eventally nvl character.

...in case nothing solve the issue.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]