Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not correctly choosing fonts in Ubuntu 16.04 LTS #5266

Closed
renkun-ken opened this issue Apr 23, 2016 · 4 comments
Closed

Not correctly choosing fonts in Ubuntu 16.04 LTS #5266

renkun-ken opened this issue Apr 23, 2016 · 4 comments

Comments

@renkun-ken
Copy link

renkun-ken commented Apr 23, 2016

  • Electron version: 0.35.6
  • Operating system: Ubuntu 16.04 LTS

I'm using the latest release of Slack (v2.0.3 64-bit), VSCode (v1.0.0), and GitKraken (v1.1.0) in Ubuntu. The font rendering are good in Ubuntu 15.10. But when I had a fresh install of the newly released Ubuntu 16.04 LTS, the monospace and Chinese font rendering of these apps becomes weird (too thin).

Firefox can correctly use Noto Sans CJK SC Regular to render Chinese font as it becomes default for Chinese language in Ubuntu 16.04 LTS. But Electron-based applications seem to suffer from not falling back to the right font in the GUI. Instead of choosing Noto Sans CJK SC Regular for Chinese characters, it seems to have chosen Noto Sans CJK SC Thin, which is too thin for reading.

My OS language and locales are English with Chinese installed (so I have the necessary fonts).

The following text is for test:

hello, world!
测试文字
文字如果太细了就看不清楚

In gedit, the font looks fine:

screenshot from 2016-04-23 23-11-28

But in Electron-based apps, fonts are too thin:

VSCode:

screenshot from 2016-04-23 23-06-10

Slack:

screenshot from 2016-04-23 23-09-37

@zcbenz
Copy link
Member

zcbenz commented Apr 24, 2016

This seems to be an upstream bug of Chromium: https://crbug.com/595690.

@renkun-ken
Copy link
Author

Here is a walk around: http://www.xiangji.me/2016/04/29/solving-cjk-font-rendering-issue-in-chrome-on-ubuntu-16.04/. I test it and it solves my problem :)

@renkun-ken
Copy link
Author

It looks like fonts-noto-cjk package is updated and the problem is gone.

@zcbenz
Copy link
Member

zcbenz commented May 21, 2016

@renkun-ken Thanks for the update!

@zcbenz zcbenz closed this as completed May 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants