Fedora 39/40 No Fonts & Library Errors
Posted: Thu Aug 15, 2024 3:05 am
I'm in the process of building a new Linux workstation running Fedora 40, and had the typical teething pains of bringing up a new install. I had a couple of problems getting Sven Coop 5 working properly. The two major issues I had were missing fonts and missing libraries, and after much research, I figured out both issues for the most part.
For the missing fonts issue, Sven Coop 5 uses Windows fonts on its Linux build, and they are not included by default because of licensing. The fonts in question are as follows:
All of these fonts besides Ariel can be installed relatively easily. For Tahoma and Verdana, you can install these packages using DNF in a bash console, or using the package manager.
For the other fonts besides Ariel, you'll need to install the mscorefonts2 package from its Sourceforge repository.
As for the Ariel font, I have not found a solution for it. The above package will install the font, as will installing WINE, but SC5 can't see the font being installed for whatever reason. As a workaround, you can open TrackerScheme.res in the svencoop/resource folder and replace all instances of Ariel with Tahoma. There are several other places this is used in other scripts in the resource folder, as well in the svencoop_event* folders, and those will have to be changed as well. Luckily, this font is only used for plugins and some legacy compatibility, so even if you don't do the workaround, you'll probably not notice it missing.
The next issue are the missing libraries. The libraries that SC5 requires are by default usually present in Fedora 39/40, but are newer and go by a different name. Since SC5 doesn't detect the library properly, you'll need to make a symlink to make these libraries available to SC5.
To do this, open up a bash console and type the following:
This should fix the missing library issues.
For the missing fonts issue, Sven Coop 5 uses Windows fonts on its Linux build, and they are not included by default because of licensing. The fonts in question are as follows:
Code: Select all
Ariel
Tahoma
Verdana
Marlett
Trebuchet MS
Courier NewCode: Select all
dejavu-fonts-all
dejavu-serif-fonts
dejavu-sans-fontsCode: Select all
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpmThe next issue are the missing libraries. The libraries that SC5 requires are by default usually present in Fedora 39/40, but are newer and go by a different name. Since SC5 doesn't detect the library properly, you'll need to make a symlink to make these libraries available to SC5.
To do this, open up a bash console and type the following:
Code: Select all
ln -s /usr/lib/libssl.so.3 /usr/lib/libssl.so.1.1
ln -s /usr/lib/libcrypto.so.3 /usr/lib/libcrypto.so.1.1