I’m trying to play the experiemental 0.7.1 version of the windows sdl version. I’m trying to increase the fontsize by going into the fontdata files and adding a value for font size so the file looks like this
Before:
Terminus
8
16
After:
Terminus
8
16
18
I save the file, start up the game but it’s still the same font size How do I go about increasing it? Thanks.
I tried it while removing the 8, it’s the same font size but the letters are just more spread out. I read some documentation somewhere that stated that the format for fontdata was
I’ve tried various permutations of numbers but all it does is change the spacing between the characters but the characters themselves are still the same size. Is it that the terminus font can’t be enlarged? Did the formatting change?
[quote=“joeman137, post:3, topic:2874”]I read some documentation somewhere that stated that the format for fontdata was
[/quote]
That must have been from the wiki. The information was intended to be used mainly with square fonts.
The last one allows you to fine tune further how the font will be displayed. This is particularly useful, and sometimes needed, with square fonts (which would go into the "nonstandard font"s you mention).
I personally use one of those square fonts: Topaz-8. After several tests I finally ended up using a fixed 12pt size for all fields, and a viewport size of x:28 y:29 for my 1360x768 desktop resolution. Small enough font size so it’s still readable and big enough for a good gameworld display area.
I also found that using a too small font size (like 12,12,8) created some bad headaches after playing for a while, mainly when scrolling (moving around). Maybe that’s just me, though.
Thanks everyone for the suggestions. I played around with the fontdata file a bit more and noticed the fontlist file. I replaced Terminus with FixedsysTTF and the scaling finally kicked in. I’m not sure why but that Terminus font just wouldn’t scale, maybe it’s a windows quirk?
Anyway just throwing the information out there in case anyone can find use out of it. I gotta say it seems like this FixedsysTTF is kinda blurry scaled up, are there fonts out there that are sharper? Could someone recommend a few? Thanks
Terminus (or any raster font) only have a few supported sizes and doesn’t scale well/at all, BUT it will as a tradeoff render noticeably faster than non-raster fonts on slower systems.
Topaz-8 is bold, square, and enlarged over the default font for easier readability, here are my settings that allow it to fit a 1920x1080 desktop resolution perfectly. (In windows right click the title bar and use the move command with control+arrow keys to move it into pixel perfect position if wanted.) Works best on Curses version. SDL previously when tested would squish/skew the font slightly.
Fontdata:
Topaz-8
16
18
Ingame settings:
32 width
29 height
(Note that its not -perfectly- square with my setting of 16x18, i made it slightly taller for easier readability, less corruption on resizing, and better screen fit)