Changing font

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
shentino
Greenhorn
Posts: 8
Joined: 29 Feb 2008, 02:04

Changing font

Post by shentino »

How do I change/fiddle with the font used in the game?

To be exact, I want to change the digit glyphs used in the following places among others:

the brown numbers that indicate time remaining on tasks (right over the yellow progress bars)
quantities to produce for production or construction

What I'd like to do is amend them to use an LCD style with square lines.

My biggest problem with the current ones is that the 4 is a bit on the fat side and not of equal width to the other 9 digits, which makes the task progress countdown look goofy when a 4 shows up.

I've tried searching the resource files but I can't find anything yet.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Changing font

Post by vexed »

Edit your config file, and change the font to whatever you want.
FileLocations
/facepalm ...Grinch stole Warzone๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
shentino
Greenhorn
Posts: 8
Joined: 29 Feb 2008, 02:04

Re: Changing font

Post by shentino »

Not bad, but what is the name of the setting?
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Changing font

Post by Berg »

Code: Select all

fontname=DejaVu Sans
fontfacebold=Bold
fontface=Book
type=14
These are in an earlier linux but not in latest beta
You might just need to add them
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Changing font

Post by aubergine »

Does the font have to be a specific type? I tried using the settings but got this error:

--- Starting log ---
error |09:53:47: [iV_initializeGLC:165] Failed to select font family Synchro LET as regular font
error |09:53:47: [iV_initializeGLC:183] iV_initializeGLC: Failed to select font family Synchro LET for the bold font

Image
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Changing font

Post by vexed »

Not really sure why it isn't working, have you tried other fonts ? This might be a mac specific issue...
/facepalm ...Grinch stole Warzone๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Changing font

Post by Lord Apocalypse »

Not mac specific. Got same issue compiling under windows. Compiled masters though.. about to compile for 3.1 once its done downloading. Will report again once 3.1 is compiled. (sorry if its a bit of a necro for posting a month late)
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Changing font

Post by aubergine »

@Berg: You mentioned "type" parameter - however in one document I found it said something like "Used for setting the game type, do not edit this." -- is type certainly related to fonts, specifically the size of font to use?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Changing font

Post by vexed »

Lord Apocalypse wrote:Not mac specific. Got same issue compiling under windows. Compiled masters though.. about to compile for 3.1 once its done downloading. Will report again once 3.1 is compiled. (sorry if its a bit of a necro for posting a month late)
Yes, it is.
The mac builds can't change font for mac only reasons better explained by people who use those machines.

All other builds can by making sure the font is installed correctly, and you change the name correctly as well.
/facepalm ...Grinch stole Warzone๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
ChainMale
New user
Posts: 3
Joined: 02 Oct 2012, 09:29

Re: Changing font

Post by ChainMale »

I might suggest that some one who knows fonts well might layout a comon one across multiple OS's that is a wee bit bigger. There are bigger monitors these days with 1920' becoming standard. With mine at "x1200" could use a good boost.

I can't seem to get all the names right as Ariel has sub' sections. (sigh)

fontname=DejaVu Sans - Ariel Regular / Ariel Bold?
fontfacebold=Bold - (no)
fontface=Book - Ariel?
type=14 - 12? (Ariel is a tad big itself!)

(don't actualy try that layout)