Please add font to support Chinese

Discuss the future of Warzone 2100 with us.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Please add font to support Chinese

Post by Zarel »

Kaldera wrote:Any comments to this?
No. Games don't let users choose fonts, because they usually have an intended font. Warzone is a bit more lax in that you can configure it to use whatever font you want, but it's still not something to advertise in the in-game options.

It's easier just to bundle the best font for Warzone with Warzone.
User avatar
Terra
New user
Posts: 1
Joined: 27 Apr 2009, 06:06
Location: Guang Xi, China

Droid Sans Fallback

Post by Terra »

I recommend Google Droid Sans Fallback for Chinese.

It's licensed under Apache License.

It include Chinese(Simplified & Traditional) / Japanese / Korean, include GB2312 / Big-5 / JIS-0208 / KSC-5601.

It's size only 3.04MB.

see:
http://damieng.com/blog/2007/11/14/droi ... e-ascender
http://en.wikipedia.org/wiki/Droid_(font)
http://android.git.kernel.org/
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Please add font to support Chinese

Post by Buginator »

Are you saying we should bundle allot of different fonts with the game, and let the user edit the config file to change the font?

I am not sure we need to bundle the fonts. The best thing would be to use the OS's available fonts, but currently, at least on Vista/win7, that takes a *huge* amount a time to build the cache file.

Or perhaps I am not understanding this... it is late, and I really should be zzzzzzzzzzzzzz....
and it ends here.
Kaldera
Trained
Trained
Posts: 49
Joined: 20 Jun 2008, 22:04
Location: Germany

Re: Please add font to support Chinese

Post by Kaldera »

Why searching directly in font folder?
All available fonts are written in registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts (XP,Vista, Win7, no idea of older)
So caching is only (if ever) necessary after chosen the right font.
Windows 7 RC / Athlon 64 X2 / NVIDIA GeForce 8600 GT
User avatar
Violin
Rookie
Rookie
Posts: 30
Joined: 20 Apr 2009, 06:28
Location: Wuhan, China

Re: Droid Sans Fallback

Post by Violin »

Terra wrote:I recommend Google Droid Sans Fallback for Chinese.

It's licensed under Apache License.

It include Chinese(Simplified & Traditional) / Japanese / Korean, include GB2312 / Big-5 / JIS-0208 / KSC-5601.

It's size only 3.04MB.

see:
http://damieng.com/blog/2007/11/14/droi ... e-ascender
http://en.wikipedia.org/wiki/Droid_(font)
http://android.git.kernel.org/
It seems that Droid Fonts are designed for mobile phones.
谁言别后终无悔,
寒月清宵绮梦回。
深知身在情长在,
前尘不共彩云飞。
User avatar
Violin
Rookie
Rookie
Posts: 30
Joined: 20 Apr 2009, 06:28
Location: Wuhan, China

Re: Please add font to support Chinese

Post by Violin »

Buginator wrote:Are you saying we should bundle allot of different fonts with the game, and let the user edit the config file to change the font?

I am not sure we need to bundle the fonts. The best thing would be to use the OS's available fonts, but currently, at least on Vista/win7, that takes a *huge* amount a time to build the cache file.

Or perhaps I am not understanding this... it is late, and I really should be zzzzzzzzzzzzzz....
We just bundle a lot of different fonts and set up font substitution, just like most modern operating systems.
I am not sure whether using system fonts is good. But I have to tell you that in early versions which cache system fonts, Chinese characters are still not displayed. I think it never uses system fonts.
谁言别后终无悔,
寒月清宵绮梦回。
深知身在情长在,
前尘不共彩云飞。
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Please add font to support Chinese

Post by cybersphinx »

Kaldera wrote:Why searching directly in font folder?
All available fonts are written in registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts (XP,Vista, Win7, no idea of older)
So caching is only (if ever) necessary after chosen the right font.
Because we need platform-independent font access, for which we currently use fontconfig (through quesoglc).
Violin wrote:We just bundle a lot of different fonts and set up font substitution, just like most modern operating systems.
I am not sure whether using system fonts is good. But I have to tell you that in early versions which cache system fonts, Chinese characters are still not displayed. I think it never uses system fonts.
I'm not sure how good Warzone's fontconfig configuration works on Windows, it looks like it's just a copied Linux config. So it probably doesn't include substitutions for Windows fonts.
User avatar
Violin
Rookie
Rookie
Posts: 30
Joined: 20 Apr 2009, 06:28
Location: Wuhan, China

Re: Please add font to support Chinese

Post by Violin »

cybersphinx wrote: I'm not sure how good Warzone's fontconfig configuration works on Windows, it looks like it's just a copied Linux config. So it probably doesn't include substitutions for Windows fonts.
So it is necessary to rewrite a good fontconfig.
谁言别后终无悔,
寒月清宵绮梦回。
深知身在情长在,
前尘不共彩云飞。