ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
634 stars 74 forks source link

Source1 games have menu missing with FT_Load_Char error in console #2747

Open L1Q opened 5 years ago

L1Q commented 5 years ago

I tested and confirm to have have this issue with CS:S and HL2.

Game runs, main menu has game name and in case of HL2 3d map background, but does not have any entries like new game, settings, or quit. When opening console with ~ key it continuously prints out same message: Error in FT_Load_Char: ch:20 error:24

screenshot

Running on Linux (Manjaro 18.0.4)

L1Q commented 4 years ago

Fixed by purging my fontconfig settings, can't even tell what it was.

kisak-valve commented 4 years ago

Hello @L1Q, glad to hear you got this working. If you figure out what setting leads to this, let me know and I can re-open.

Closing per the last comment.

L1Q commented 4 years ago

Ok, here is an update. The game broke from my quick-and-dirty way of enabling color emoji.
Here is a minimal fontconfig file ~/.config/fontconfig/fonts.conf that does enable color emoji in apps like discord and google chrome, but breaks HL2:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match>
  <test name="family">
   <string>sans-serif</string>
  </test>
  <edit mode="prepend" name="family" binding="strong">
   <string>Noto Color Emoji</string>
  </edit>
 </match>
 <dir>~/.fonts</dir>
</fontconfig>

As mentioned earlier, deleting/renaming the file was a fix, but it also disables color emoji system wide. The correct solution for me was following this guide on reddit precisely.