Counter-Strike: Source

Counter-Strike: Source

Nincs elegendő értékelés
Font Fixes (Linux)
Készítő: lightwo
Fixing unsupported characters and incorrect font sizes for the Linux version of the game.

Also available for Team Fortress 2
   
Díjazás
Kedvenc
Kedvenc
Törlés
Guide Moved!
This guide has been moved here[blog.lightwo.net]

Read more
Preface
It is recommended that Windows fonts are installed before following the other instructions in this guide. Doing so also ensures the fallback DejaVu Sans (which is drawn way too small) is not used for any previously missing fonts. Instructions for Arch Linux are available in this ArchWiki article[wiki.archlinux.org]. You may use free fonts instead (please leave suggestions in the comments!), but especially in the case of the fallback font, you need to know what to look for.

Different Source games have slight variations in file locations and contents, but it is roughly the same procedure for every Source game using VGUI based on HL2 resources.
Missing Glyphs
Before
After



Instructions
Either:
  • Install WenQuanYi Zen Hei font (wqy-zenhei). It's the hard coded fallback font used by the game for unsupported characters
  • Replace that font with Tahoma, the fallback font for the Windows version of the game
    1. Obtain tahoma.ttf. Read the ArchWiki article[wiki.archlinux.org] for some methods
    2. Install and launch FontForge
    3. Edit tahoma.ttf
    4. Navigate to Element > Font Info...
    5. Under PS Names (default pane), change Family Name to WenQuanYi Zen Hei, confirm with OK
    6. Navigate to File > Generate Fonts...
    7. Make sure Show Hidden Files is checked
    8. Navigate to Home > .local > share > fonts and enter the desired name, untick Validate Before Saving and press Generate
    Note that alternative free fonts may be used instead of Tahoma, in which case use a font with a large character set
Chat Font
Before
After



Instructions
  1. Obtain chatscheme.res
    1. Enter the game directory
      1. Hover over the game in your Steam Library
      2. Navigate to Context menu > Manage > Browse local files
      3. Either use the file manager window or copy the path and use it in the terminal
    2. Copy chatscheme.res from hl2 > resource into custom > (new directory) linux_fixes > resource
  2. Edit the chatscheme.res copied earlier using your preferred text editor
  3. Search for ChatFont.
    What the section should look like:
    "ChatFont" { "1" { "name" "Verdana" "tall" "12" "weight" "700" "yres" "480 599" "dropshadow" "1" } "2" { ... } ... }
  4. For each preset (under "1" through "5"), add [$LINUX] overrides (must be above defaults):
    "name" "Verdana Bold" [$LINUX] "tall" "<replace me>" [$LINUX] // = original + 3
    Optionally replace Verdana Bold with a desired font (should be the bold variant since "weight" is broken for TTF fonts), and replace as instructed
Console Font
Before
After



Instructions
  1. Obtain sourceschemebase.res
    1. Enter the game directory
      1. Hover over the game in your Steam Library
      2. Navigate to Context menu > Manage > Browse local files
      3. Either use the file manager window or copy the path and use it in the terminal
    2. Go to platform > resource and make a backup of sourceschemebase.res
  2. Edit sourceschemebase.res using your preferred text editor
  3. Search for ConsoleText.
    What the section should look like:
    "ConsoleText" { "1" { "name" "Lucida Console" [$WINDOWS] "name" "Lucida Console" [$X360] "name" "Verdana" [$POSIX] "tall" "11" [$OSX] "tall" "14" [$LINUX] "tall" "10" "weight" "500" } }
  4. For the preset "1", add the [$LINUX] override:
    "name" "Lucida Console" [$LINUX]
    Optionally replace Lucida Console with a desired, preferably monospace font
5 megjegyzés
aubri 2023. ápr. 12., 21:56 
this is so weirdly niche, but i love it and will use it soon. thank you!
「ẋQẕᴍᴇ.ᴡᴛғ」 2022. okt. 6., 13:07 
Magic (∩・ᴗ・)⊃━・*:.。. .。.:*・゜゚・*☆
Senate Leader Mitch McConnell 2022. aug. 7., 13:04 
( ͡° ͜ʖ ͡°)
seuls_Leo 2022. aug. 4., 7:32 
( ͡° ͜ʖ ͡°)
militarycat 2022. aug. 3., 17:21 
( ͡° ͜ʖ ͡°)