portal2 icon indicating copy to clipboard operation
portal2 copied to clipboard

Chinese text will not display in Portal 2.

Open Kakurady opened this issue 11 years ago • 6 comments

When Portal 2 is set to display in Chinese, no Chinese text is actually rendered. That includes text in the menu and closed captions. The developer console displays "m_face->glyph->bitmap.width is 0 for ch:36827 Nimbus Sans L". English characters still render.

Happens to Simplified Chinese, Traditional Chinese, Japanese and Thai. I'm using Ubuntu 14.04.

To reproduce: Right-click Portal 2 in the Steam library, select Properties, select the Language tab, select Simplified Chinese. Start Portal 2.

Expected results: Chinese text are readable.

Actual results: Chinese text is not displayed. 2014-04-26_00004 2014-04-26_00002

Kakurady avatar Apr 26 '14 09:04 Kakurady

Do you have Asian TTF fonts installed? Your URW Nimbus Sans doesn't seem to have any Chinese glyphs compiled in, maybe it's a substitute font.

ItsMeOnly avatar Apr 27 '14 19:04 ItsMeOnly

Yes, I have fonts-droid and fonts-wqy-microhei installed; but Portal 2 is not using them.

Kakurady avatar Apr 28 '14 19:04 Kakurady

Maybe that's the problem: set up a font substitution, because it looks for "Nimbus Sans"

ItsMeOnly avatar Apr 28 '14 20:04 ItsMeOnly

create a file at ~/.fonts.conf should work:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="pattern">
    <test name="family" qual="any" >
      <string>Nimbus Sans L</string>
    </test>
    <edit name="family" mode="assign" binding="same">
      <string>WenQuanYi Micro Hei</string>
    </edit>
  </match>

</fontconfig>

CaulyKan avatar Jan 03 '16 17:01 CaulyKan

How do I create a file at ~/.fonts.conf ? I am having this same issue and have not found a solution either. Where is the ~ ?

mousemuffins avatar Apr 26 '18 23:04 mousemuffins

~ is your home folder.

jedenastka avatar Sep 08 '18 11:09 jedenastka