How to replace font files (in Linux)?

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
dl7und
New user
Posts: 2
Joined: 01 May 2009, 05:22

How to replace font files (in Linux)?

Post by dl7und »

Hi,

I am trying to get Chinese displayed in the game, on Linux. Since quite a few games come with their own copy of Dejavu, I looked into the shared directories (/usr/share/games/warzone2100), but there was no TTF. So I installed the Windows version on Linux, where I found two TTFs. I deleted them and created symlinks (with the original names) to a font I usually use for this purpose, but no characters were displayed, not even squares. Even copying (and of course adequately renaming) the font into the font directory did not help. :(

Could someone please lend a hand and give me a hint how to replace the original fonts on Linux? I would like to try out our translation... :-S
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: How to replace font files (in Linux)?

Post by Buginator »

dl7und wrote:Hi,

I am trying to get Chinese displayed in the game, on Linux. Since quite a few games come with their own copy of Dejavu, I looked into the shared directories (/usr/share/games/warzone2100), but there was no TTF. So I installed the Windows version on Linux, where I found two TTFs. I deleted them and created symlinks (with the original names) to a font I usually use for this purpose, but no characters were displayed, not even squares. Even copying (and of course adequately renaming) the font into the font directory did not help. :(

Could someone please lend a hand and give me a hint how to replace the original fonts on Linux? I would like to try out our translation... :-S
For 2.2 / trunk builds you edit the 'config' file. (Look in ~./warzone2100-2.2)
For anything else, you can't do it externally.
and it ends here.
dl7und
New user
Posts: 2
Joined: 01 May 2009, 05:22

Re: How to replace font files (in Linux)?

Post by dl7und »

Buginator wrote:For 2.2 / trunk builds you edit the 'config' file. (Look in ~./warzone2100-2.2)
For anything else, you can't do it externally.
Wow, that was quick. I suppose you mean "configuration.c" in src? That's where I found Dejavu mentioned. I'll try my luck with that, as soon as I have a complete copy of the source. I've been trying for a few days now: "Connection closed unexpectedly" after a number of files, so I have to do it in small steps...

Thanks!

Olaf
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: How to replace font files (in Linux)?

Post by Buginator »

dl7und wrote:quote="Buginator"For 2.2 / trunk builds you edit the 'config' file. (Look in ~./warzone2100-2.2)
For anything else, you can't do it externally./quote
Wow, that was quick. I suppose you mean "configuration.c" in src? That's where I found Dejavu mentioned. I'll try my luck with that, as soon as I have a complete copy of the source. I've been trying for a few days now: "Connection closed unexpectedly" after a number of files, so I have to do it in small steps...

Thanks!

Olaf
No, I mean the file called "config"
In it, you will find:
fontname=whatever

Change that.

Oh, and don't use the GNA svn repo. We had some serious issues with them. So we switched to SourceForge.
https://warzone2100.svn.sourceforge.net ... 2100/trunk (better gfx)
https://warzone2100.svn.sourceforge.net ... anches/2.2 (next release candidate)
and it ends here.