Page 1 of 1
How do I override Spring's Default Font?
Posted: 09 Sep 2019, 23:11
by Forboding Angel
Grepping all over the place for freesans is getting me nowhere. I've looked in basecontent. I've looked in Evo's core files I don't know how many times.
Either I'm blind or it's somewhere I haven't looked yet.
HaoduzI?
Re: How do I override Spring's Default Font?
Posted: 10 Sep 2019, 22:22
by FLOZi
Re: How do I override Spring's Default Font?
Posted: 11 Sep 2019, 03:30
by Forboding Angel
Wait a sec... Font is a springsettings var?
*Surprised pikachu*
That's pretty awesome. Thanks!
Re: How do I override Spring's Default Font?
Posted: 11 Sep 2019, 06:32
by Forboding Angel
Ok, so how do I point to a font file that is in the game archive? It seems treat the folder that spring.exe is run from as ./
Re: How do I override Spring's Default Font?
Posted: 11 Sep 2019, 08:36
by Silentwings
You're changing the default font for Spring there. That's a global property, not a game specific property, so it doesn't assume that any particular game is installed -> it shouldn't be assumed to come from within a game archive. I guess that the VFS is not even loaded at some points where Springs default font is used (e.g. Engines own menu to choose game/map).
Any filepath works though,
https://springrts.com/wiki/Springsettings.cfg#FontFile
Re: How do I override Spring's Default Font?
Posted: 11 Sep 2019, 21:13
by raaar
So if a user plays a game that overrides that, then plays another game that doesn't, he'll get the modified font?
Re: How do I override Spring's Default Font?
Posted: 11 Sep 2019, 21:19
by Forboding Angel
The way it is set up is that it is completely user-side.
It also only effects spring itself. Everything else is handled in game in-mod.
Source: Gave myself a shitty crash course in spring and fonts for the past 2 days and am still slightly confused.
Re: How do I override Spring's Default Font?
Posted: 11 Sep 2019, 21:51
by FLOZi
Forboding Angel wrote: ↑11 Sep 2019, 06:32
Ok, so how do I point to a font file that is in the game archive? It seems treat the folder that spring.exe is run from as ./
It is in root/fonts
https://github.com/SpringMCLegacy/Sprin ... Gothic.ttf