Can not be displayed in Chinese

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
-Kosh-
Trained
Trained
Posts: 203
Joined: 16 Sep 2009, 23:34

Re: Can not be displayed in Chinese

Post by -Kosh- »

Zarel wrote:Meh, how's about bundling a Chinese font? Anyone know of any Free Chinese fonts?
O_o How will that help?
You need to change the config's file font name.
Just slam a readme.txt file for Chinese peeps into the directory and explain what they need to do.
This is a waste of space. Something important should be here.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: Can not be displayed in Chinese

Post by Zarel »

-Kosh- wrote:O_o How will that help?
You need to change the config's file font name.
Just slam a readme.txt file for Chinese peeps into the directory and explain what they need to do.
Explaining what someone needs to do is always worse than just doing it for them. You use a computer. The whole point of having a computer is so it can do things that are boring that you don't want to.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Can not be displayed in Chinese

Post by Buginator »

Then I guess the only good solution is make a custom installer for the Chinese people, and it would require a hard-coded font to match whatever font we would bundle?

However, that is tons of extra work... Someone write a readme file in Chinese that we can include.

The more I use NSIS, the more I *hate* it.
and it ends here.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: Can not be displayed in Chinese

Post by Zarel »

Ye gods, the problem isn't in NSIS, it's in Queso/fontconfig. :[

Why is this even an issue? Gah, is it really that hard to have a fallback font?
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Can not be displayed in Chinese

Post by cybersphinx »

Buginator wrote:Then I guess the only good solution is make a custom installer for the Chinese people, and it would require a hard-coded font to match whatever font we would bundle?
How about a good fontconfig setup (that doesn't include Windows' fonts directory, but maybe substitutions for some non-free fonts), and in the installer people can select to download extra fonts if required (since e.g. WenQuanYi is ~13 MB, smaller fonts could be included), like the videos? (And someone needs to investigate the abovementioned quesoglc problem.)
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Can not be displayed in Chinese

Post by Buginator »

Zarel wrote:Ye gods, the problem isn't in NSIS, it's in Queso/fontconfig. :[

Why is this even an issue? Gah, is it really that hard to have a fallback font?
Yes, but we need a way to write out (edit?) a new config file that has the fontname, and that can only be done in NSIS...

The other idea is to do something like this:

Code: Select all

glcAppendCatalog("./fonts");
But that just points to a new directory of fonts. I still don't know how we would change to a specific font based on language choice...We would have to re-init GLC... hmm.
and it ends here.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Can not be displayed in Chinese

Post by cybersphinx »

Buginator: The fixed quesoglc shows Chinese here, no hex code stuff. But when the Chinese font isn't active when starting (i.e. when switching the language in-game), framerate drops (maybe it falls back to software rendering); when Chinese was chosen before the game runs ok (even when switching to a latin language later).
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Can not be displayed in Chinese

Post by Buginator »

cybersphinx wrote:Buginator: The fixed quesoglc shows Chinese here, no hex code stuff. But when the Chinese font isn't active when starting (i.e. when switching the language in-game), framerate drops (maybe it falls back to software rendering); when Chinese was chosen before the game runs ok (even when switching to a latin language later).
Hmm. For me, it isn't finding the font at all...and instead, get the hexcodes.
FYI when GLC cannot map a character to a font (i.e. find a glyph), it
displays \<hexcode> where hexcode is the Unicode code of the character (see
GLC specs para 3.9.1). Unless there is another bug, I think this is what
happens to you.
and it ends here.
Post Reply