Facepunch / garrysmod-issues

Garry's Mod issue tracker
147 stars 56 forks source link

[Linux] Unicode not being rendered propery, "bitmap.width is 0" #3219

Open JShorthouse opened 7 years ago

JShorthouse commented 7 years ago

Details

Unicode characters are not displayed, either in the chatbox or in the console. Whenever a unicode character should be displayed, an error appears in console such as:

m_face->glyph->bitmap.width is 0 for ch:9829 Nimbus Sans L , where I assume the number corresponds to the unicode code point.

For example, attempting to send a unicode heart (♥) in the chatbox on singleplayer results in the following being displayed in the console:

Shorty: m_face->glyph->bitmap.width is 0 for ch:9829 Nimbus Sans L

However, the character is still "there", just not properly displayed. The above was a recreation of what is displayed, below is the console output copied directly:

Shorty: ♥ m_face->glyph->bitmap.width is 0 for ch:9829 Nimbus Sans L

I have tried installing multiple font packages and locally installing all the fonts in garrysmod/resource/fonts/ to no avail. I also have both en_gb and en_us locales installed.

This issue happens on both of my computers running Xubuntu.

Steps to reproduce

Attempt to send or view any unicode character.

JShorthouse commented 7 years ago

After installing the fontconfig-infinality package I can now see unicode characters in game.

More of a workaround than a fix because that package improves font rendering and replaces system fonts, but for any one else with the same issue installing that package should solve the problem (and give you better font rendering everywhere else :D)