Font settings don't do anything (R210 Linux)

If you encounter a bug, please let us know here

Font settings don't do anything (R210 Linux)

Postby ToxicFrog » Sun 8. Sep 2019, 12:25

I'm trying to play Prospector on a high-DPI screen on openSUSE Linux. It starts up fine, and adjusting the screen size (width and lines) works fine; and I was also able to increase the tile resolution by manually upscaling the tile graphics and then setting _tix and _tiy appropriately. However, changing the font size doesn't seem to do anything, and indeed even with the default font settings (tilefont:18 and textfont:16) it looks like it uses font12 for everything:

Code: Select all
$ grep font config/config.txt
customfonts:0
tilefont:18
textfont:16

$ strace -f -etrace=file ./prospector_nosound 2>&1 | grep open | uniq               
[library loading elided...]
[pid 10828] openat(AT_FDCWD, "savegames/empty.sav", O_RDONLY|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "config/config.txt", O_RDONLY|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "config/config.txt", O_RDONLY|O_LARGEFILE) = 5
[pid 10828] openat(AT_FDCWD, "graphics/font18.bmp", O_RDONLY|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/font16.bmp", O_RDONLY|O_LARGEFILE) = 4
[XAuth and XDefaults loading...]
[pid 10828] openat(AT_FDCWD, "graphics/font12.bmp", O_RDWR|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/font12.bmp", O_RDONLY|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/12header", O_RDWR|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/font12.bmp", O_RDWR|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/font12.bmp", O_RDONLY|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/12header", O_RDWR|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/font26.bmp", O_RDWR|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/font26.bmp", O_RDONLY|O_LARGEFILE) = 4
[pid 10828] openat(AT_FDCWD, "graphics/26header", O_RDWR|O_LARGEFILE) = 4
[more X stuff, then it loads the tile graphics and the game starts]


No matter what font settings I use, it loads the two fonts specified, then loads font12, 12header, font26, and 26header; and then it uses font12 for the in-game text (confirmed by taking screenshots and comparing the results with font12.bmp).

Interestingly, if I specify a font that doesn't exist at all, it does something completely different where it loads data/F1.bmp and the display gets kind of messed up in general. So it's not like it thinks none of the fonts exist; it just refuses to use them.

If I overwrite 12header and font12 with 24header and font24, things appear to work mostly fine -- the 24px font is displayed, although some lines of text (like the ship/perk descriptions in character creation and the ship naming prompt) are cut off slightly before the end of the actual text -- it seems to be underestimating the width of the characters slightly, data I would have assumed would be in the 24header.

(As a side note, the in-game settings screen says you can specify a font size "8-28", but only 8-26 actually have font files in graphics/.)
ToxicFrog
Redshirt
 
Posts: 1
Joined: Sun 8. Sep 2019, 12:06

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron