[help]About display Chinese

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.
Message
Author
Ivlivs
Veteran
Posts: 266
Joined: Sun Feb 25, 2007 1:00 pm
Contact:

#16 Post by Ivlivs » Sun Apr 29, 2007 12:18 pm

A freely-distributable Chinese font:
(Fireflysung) http://www.linuxhall.org/images/upload/

And some freely-distributable Japanese fonts:
(Sazanami) http://sourceforge.jp/projects/efont/
(VL Gothic) http://dicey.org/vlgothic/

Don't worry about a thing; you don't have to rely on whether or not someone has the right fonts on their system.

My only gripes with these fonts are that they don't display properly at very small sizes (read: the save screen on 640x480), so these fonts would only be useful in an 800x600 game.

Still, though, as long as your game is 800x600, there's absolutely no need to worry about the fonts bugging out.

Just thought I'd add something useful.

User avatar
windhunter
Newbie
Posts: 2
Joined: Tue May 01, 2007 3:31 am
Contact:

#17 Post by windhunter » Wed May 02, 2007 9:36 am

When I use Ren'Py, the character's name can't be displayed in Chinese.
How to solve the problem? :?:

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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:

#18 Post by PyTom » Wed May 02, 2007 11:14 am

Use a unicode python string when writing the character's name:

Code: Select all

init:
    $ zh = Character(u"郑和")
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
windhunter
Newbie
Posts: 2
Joined: Tue May 01, 2007 3:31 am
Contact:

#19 Post by windhunter » Wed May 02, 2007 11:05 pm

Thanks,I have solved the problem,and I have found the web which explains the problem.

http://www.renpy.org/wiki/renpy/chs/doc ... 7%BC%96%29

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

#20 Post by DaFool » Thu May 03, 2007 7:11 am

If that's representative of Sigmaxion's game that is so going to kick butt.

bardsmanship
Regular
Posts: 41
Joined: Sat Jun 04, 2005 7:47 pm
Location: Singapore
Contact:

#21 Post by bardsmanship » Thu May 03, 2007 9:04 am

DaFool wrote:If that's representative of Sigmaxion's game that is so going to kick butt.
Oh, wow you're right, that background's positively gorgeous!

Haha, that last screenshot's quite funny! :D

User avatar
Kakurady
Newbie
Posts: 20
Joined: Tue Apr 03, 2007 6:21 am
Location: Shanghai, China
Contact:

#22 Post by Kakurady » Fri May 04, 2007 11:38 am

bardsmanship wrote: Oh, wow you're right, that background's positively gorgeous!

Haha, that last screenshot's quite funny! :D
If you can understand Chinese that is...

(The screenshot says something like this:
NVL Character: This is NVL mode.
NVL Character: This some dummy text. This is some dummy text too. This
is yet another piece of dummy text. This is still some other dummy text.
)
No, I don't like Ren'ai games.
But Ren'Py is not only another Ren'ai game Engine.

Post Reply

Who is online

Users browsing this forum: No registered users