Page 3 of 3

Re: Can not be displayed in Chinese

Posted: 21 Oct 2009, 03:40
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.

Re: Can not be displayed in Chinese

Posted: 21 Oct 2009, 03:48
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.

Re: Can not be displayed in Chinese

Posted: 30 Oct 2009, 06:34
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.

Re: Can not be displayed in Chinese

Posted: 30 Oct 2009, 07:18
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?

Re: Can not be displayed in Chinese

Posted: 30 Oct 2009, 15:50
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.)

Re: Can not be displayed in Chinese

Posted: 30 Oct 2009, 23:32
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.

Re: Can not be displayed in Chinese

Posted: 13 Nov 2009, 22:33
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).

Re: Can not be displayed in Chinese

Posted: 14 Nov 2009, 04:08
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.