Page 1 of 1

Fedora 39/40 No Fonts & Library Errors

Posted: Thu Aug 15, 2024 3:05 am
by GiGaBiTe
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:

Code: Select all

Ariel
Tahoma
Verdana
Marlett
Trebuchet MS
Courier New
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.

Code: Select all

dejavu-fonts-all
dejavu-serif-fonts
dejavu-sans-fonts
For the other fonts besides Ariel, you'll need to install the mscorefonts2 package from its Sourceforge repository.

Code: Select all

sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
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:

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
This should fix the missing library issues.

Re: Fedora 39/40 No Fonts & Library Errors

Posted: Wed Nov 06, 2024 10:35 am
by GiGaBiTe
As an addendum, Fedora 40 is removing OpenSSL 1.x from the distro in the future, so a workaround will need to be used.

There is currently a compatibility build of OpenSSL 1.x available here:
https://koji.fedoraproject.org/koji/pac ... geID=32363

Discussion found here:
https://discussion.fedoraproject.org/t/ ... und/119685