TomenetGame / tomenet

TomeNET is an online multiplayer roguelike role-playing game
https://www.tomenet.eu/
Other
69 stars 11 forks source link

TomeNET 4.9.n on Arch GNU/Linux can't use existent fonts #53

Closed dchmelik closed 10 months ago

dchmelik commented 10 months ago

A friend of mine tried TomeNet 4.9.0, 4.9.1 but it can't use existent fonts.

[user@Turmeric ~]$ cd Games/TomeNet/tomenet-4.9.0c-linux-amd64/
[user@Turmeric tomenet-4.9.0c-linux-amd64]$ ls lib/xtra/font
10X14TG.FON  10X17KB.FON  10X17TG.FON  12X17TG.FON  12X18KS.FON  12X24.FON    16X16TG.FON  16X24TG.FON  19X29TG.FON  24X36TG.FON  6X10.FON    6X12TG.FON  6X13TG.FON  7X13B.FON   8X13B.FON   9X15B.FON
10X14X.FON   10X17K.FON   10X20.FON    12X18KB.FON  12X18TG.FON  12X24TG.FON  16X16X.FON   16X24X.FON   21X31L.FON   5X8.FON      6X10TG.FON  6X13B.FON   6X9.FON     7X13.FON    8X13.FON    9X15.FON
10X16TG.FON  10X17KS.FON  10X20TG.FON  12X18K.FON   12X18X.FON   14X20TG.FON  16X22TG.FON  17X25TG.FON  21X31TG.FON  5X8TG.FON    6X12.FON    6X13.FON    6X9TG.FON   7X13TG.FON  8X13TG.FON  9X15TG.FON
[matheros@Turmeric tomenet-4.9.0c-linux-amd64]$ ./tomenet
Failed to load the "9x15" font for terminal 0
Failed to load the default "8x13" font for terminal 0
Error initializing term_data for X11 terminal with index 0
Error initializing X11 terminal window with index 0
Error opening terminal: xterm-16color.
[user@Turmeric tomenet-4.9.0c-linux-amd64]$
mhirki commented 10 months ago

On Linux you need to install the X.org misc fonts package. This is mentioned in the troubleshooting section of the guide. The *.FON files are used by the Windows clients so those are not going to help you.

PROBLEM 56: On a fresh TomeNET installation on Linux, the game will fail to
            start, giving a font-not-found error (usually about font '9x15'),
            like this: "Font not found: 9x15".
Solution:   TomeNET uses basic Linux system fonts (and allows you to switch to
            fonts of your own choice instead, if you want to). Some Linux
            distributions do not have these installed by default though, for
            example Antergos.
            Install the necessary fonts packages on your system, using the
            system's package manager. It should usually be 'xorg-fonts-misc' or
            'linux-fonts-misc'.
            On some distros (Archlinux too probably) you might have to install
            the 'xorg-mkfontscale' package.
            After installation, reboot your system to ensure they work.
            If there is still a problem, you could try installing
            xorg-fonts-type1 or awesome-terminal-fonts too. Maybe it helps.
dchmelik commented 10 months ago

Thanks; he fixed it.