Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distorted asian fonts in steam
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Utsuho Reiuji
Apprentice
Apprentice


Joined: 03 Apr 2013
Posts: 179

PostPosted: Tue Sep 23, 2014 10:16 pm    Post subject: distorted asian fonts in steam Reply with quote

Hi again,
I'm having a problem with steam showing distorted japanese characters:
http://s15.postimg.org/89x7fmhh7/steam_distorted_characters.png
http://s29.postimg.org/o7pahp21j/steam_distorted_characters1.png

It's especially confusing since big fonts display normally, just the smaller ones.
Also, this is quite annoying since some games/songs are not recognizable...
There must be a way to fix this, does anyone have an idea?
Back to top
View user's profile Send private message
spacelike
n00b
n00b


Joined: 15 Sep 2011
Posts: 61

PostPosted: Wed Sep 24, 2014 10:56 pm    Post subject: Reply with quote

I've had this issue too. I'm pretty sure the problem is simply that the steam Linux client has a bug with rendering bitmap fonts.

This includes embedded bitmaps, so even if you set 70-no-bitmaps.conf in your fontconfig your system will still select fonts with embedded bitmaps and use those bitmaps for the available sizes.

So what I think is happening to you, is that steam is using the default Arial font, which doesn't have CJK characters in it, and when you try to view CJK characters it goes to the fallback font on your system which has embedded bitmaps.
That explains why CJK characters render fine at larger font sizes because there is no available embedded bitmap for large sizes so it uses the truetype font. But for small sizes (usually 10-16) it tries to use the bitmap
(Note: some CJK fonts you might have with embedded bitmaps that are causing the issue are wqyZenHei, ipa-fonts, ipamonafont, monafont, MS Gothic)

You can see what font it is falling back to by typing fc-match -s "Arial" in a terminal, there you can see the fallback order.
You can either play with your fontconfig until you get a fallback font for arial that doesn't use embedded bitmaps

OR

If you don't want to mess with your system you can tell steam which font to use. (This is the solution I'm using)
You can do this with steam skins.
1) create a directory in <steamInstallPath>/skins/<YourSkinName>
2) inside your skin directory create a resource directory
3) copy the default steam skin file <steamInstallPath>/resource/styles/steam.styles to the resource directory in step 2
4) change the line basefont="Arial" in that file to a font on your system that has CJK characters without embedded bitmaps
(Meiryo is a good one, I also like google's NotoSansCJK fonts)
5) go into your steam settings > Interface > select your steam skin from the list (might have to restart to see it) then restart steam

You would probably want to delete and re-copy the steam.styles file whenever steam has an update to its interface

They really should just fix the bug, but it's been over a year at least and they haven't fixed it. They still haven't even fixed the bug which prevents anyone from typing other languages into steam which require an IME, so I wouldn't hold my breath on waiting for valve to fix it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum