You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As the title goes, when player's ID includes non-English characters like Chinese, the position of Chinese character is replaced with a tiny square.
To Reproduce
Open any demo with player's ID in Chinese.
Expected behavior
Chinese character to be rendered correctly.
Screenshots
Desktop (please complete the following information):
OS: Windows 10
The text was updated successfully, but these errors were encountered:
Hi @wadecoding !
It seems like the font that we use (DejaVuSans.ttf) contains symbols for a lot of scripts, but not for all. If there's a tiny square instead of a symbol it means that the font file is missing that particular symbol.
Google develops a font family called Noto which aims to contain symbols for all scripts.
As a workaround you can go to your install directory and rename DejaVuSans.ttf to something else in order to make a backup. Then download a font from the link above. Extract the .ttf file you want, move it to your install directory and rename it to DejaVuSans.ttf.
This is still somewhat problematic, though, as Noto Sans or Noto Mono, for example, do not contain Japanese or Korean symbols (but symbols for about 500 other languages). Symbols for those languages are contained in separate font files that are also listed on that page. Also, I don't really know which Chinese dialects are supported.
Language support in csgoverview might be improved by using Noto Mono when rendering player names. Still, that leaves out a few important scripts, and we're also currently relying on DejaVuSans for a few special symbols that are not contained in Noto.
Describe the bug
As the title goes, when player's ID includes non-English characters like Chinese, the position of Chinese character is replaced with a tiny square.
To Reproduce
Open any demo with player's ID in Chinese.
Expected behavior
Chinese character to be rendered correctly.
Screenshots

Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: