setfont.txt ?

Custom mods, stories, and artwork based on the Evochron / Arvoch universe.
( Tchey )
Ensign
Ensign
Posts: 24
Joined: Sat Sep 25, 2010 12:30 pm
Location: Earth

setfont.txt ?

Post by ( Tchey ) »

I try to translate the game from english to french, based on others people work, and some characters are note supported, like é, è, à, û... I new that.

However, hope is here :
- To customize the font used in the game, create a text file in the game's folder with the filename setfont.txt and in the first line, enter the name of the font you want to use. In the second line, enter the size of the font. In the third line, enter a value of either 0 or 1 to use normal text or bold text. In the fourth line, enter the character set you want to use for different languages (default value is 1). The font needs to be installed on your system and be compatible with the game's text system. If the game is unable to use the indicated font, it will default to a standard font.
So, i try, and find it works. Partially.

This is my setfont.txt

Code: Select all

Palatino Linotype
32
0
1
I link an screen so you can see the bug (or it's a feature?) :
http://tof.canardpc.com/view/c35c8855-f ... 9f9f3a.jpg

Look at the cockpit.

I've tried with other fonts and data too (like 12 instead of 32, 0 for 1, etc), and i've always the same problem. The font is either too small but fits the cockpit, or big enough but breaks the cockpit.

What should i do ?
Ceux qui rêvent éveillés ont conscience de mille choses qui échappent à ceux qui ne rêvent qu\'endormis.
User avatar
Vice
Administrator
Administrator
Posts: 12227
Joined: Fri Apr 25, 2003 1:38 am

setfont.txt ?

Post by Vice »

Couple of options. I could implement an offset value in the font file, but a problem with this option is that there may need to be different offset values for different parts of the cockpit and HUD, which could get really complicated and never quite solve the problem. A better solution would likely be to modify the display graphics to work with the font you are using and make that part of any translation kit. So lets try that route first. Just send me a quick e-mail with the request for those files and I'll send back a ZIP that has them in original format.
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
( Tchey )
Ensign
Ensign
Posts: 24
Joined: Sat Sep 25, 2010 12:30 pm
Location: Earth

setfont.txt ?

Post by ( Tchey ) »

Thanks for your reply.

I've send an email.

I hope it's what you've asked for.
Ceux qui rêvent éveillés ont conscience de mille choses qui échappent à ceux qui ne rêvent qu\'endormis.
Maarschalk
Captain
Captain
Posts: 7641
Joined: Wed Feb 25, 2009 12:24 am
Location: USA, Also check your six!

setfont.txt ?

Post by Maarschalk »

Hi ( Tchey ), welcome to the game and forum......;):cool:
Arvoch Alliance Stat:


Evochron Legends Stats:


Evochron Mercenary Stats:


Darkness is the absence of Light as Evil is the absence of Good
Aesir Rising
Lieutenant Jr. Grade
Lieutenant Jr. Grade
Posts: 93
Joined: Sat Sep 18, 2010 1:11 am

setfont.txt ?

Post by Aesir Rising »

The same issue applies even if your objective isn't to provide translations.

I find the default game font difficult to read, and wanted to look into a different font to see if it helps. But I ran into the same inconsistencies as Tchey.

Is the root issue with changing font is that you must specific the font size and style (e.g., Bold) in setfont.txt but the game isn't applying the same size/style with the default font consistently throughout the HUD, cockpit panels, and other parts of the game UI? Is that why the cockpit panel text isn't following the rules?

If the setfont.txt implementation were changed to account for different parts of the game that used different sizes and typefaces for evochronfont.ttf, maybe we could resolve that issue without modifying game graphics.

For example, if evochronfont.ttf gets used throughout the UI in 3 different font sizes and two typefaces, setfont.txt might look like this:

Code: Select all

Cockpit
Consolas
20
0
1

Panels
Palatino Linotype
32
0
1

Some Other Part of the UI
Courier New
32
0
1
[Edited on 10-8-2010 by Aesir Rising]
-æsir
haloterm
Lieutenant
Lieutenant
Posts: 180
Joined: Sun Sep 06, 2009 5:20 pm
Location: Magdeburg, Germany

setfont.txt ?

Post by haloterm »

Are there any updates on this issue? I would like to replace my font as well, to make it easier to read.
User avatar
Vice
Administrator
Administrator
Posts: 12227
Joined: Fri Apr 25, 2003 1:38 am

setfont.txt ?

Post by Vice »

The placement option was added and is available. Also, the next test build will allow you to specify a unique size value for display and HUD text. The options for the file will be:

Font Name
Font Size
Font Bold (0 = off, 1 = on)
Font Type (character set, 1 = default)
Font Position Offset X (below 0 moves to the left, above 0 moves to the right)
Font Position Offset Y (below 0 moves up, above 0 moves down)
Font Size (display/HUD text)
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
haloterm
Lieutenant
Lieutenant
Posts: 180
Joined: Sun Sep 06, 2009 5:20 pm
Location: Magdeburg, Germany

setfont.txt ?

Post by haloterm »

Also, the next test build will allow you to specify a unique size value for display and HUD text.
Yeah! Thank you, Vice!