Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

text in clipboard widget does not respect font settings, causing non-ascii character displaying problems #6

Closed
chaserhkj opened this issue Aug 31, 2015 · 4 comments

Comments

@chaserhkj
Copy link

As shown below in the screenshot.

screen

Clipboard widget created by atom-clipboard-plus is not respecting my font setup in atom settings:

config.cson:

  editor:
    invisibles: {}
    fontFamily: "Liberation Mono, WenQuanYi Micro Hei Mono"
    softWrap: true

And thus non-ascii characters (in my case, Chinese characters) are not rendered correctly, cause default used English font do not have these characters, and Chinese fonts must be used to display them.

@aki77
Copy link
Owner

aki77 commented Aug 31, 2015

clipboard-plus did not change the font style.
Japanese fonts are displayed correctly.

Gyazo

@chaserhkj
Copy link
Author

After inspection, I found the problem is that all atom-panels in atom is not respecting the font setup in atom settings, and font-family options are just falling back to bootstrap.css's setup, which uses system's default monospace font, and do not have any Chinese glyphs.

@aki77 : I believe that it is because your system's default monospace font has already included all Japanese glyphs that this problem does not occur on your side.

Currently I'm using these lines in styles.less, overriding bootstrap.css setups as a work-around.

code,kbd,pre,samp {
  font-family: "Liberation Mono", "WenQuanYi Micro Hei Mono" !important; // Replace with preferred font.
}

So this should be considered as an atom issue, I'll consider sending an issue to atom repository then.

@aki77
Copy link
Owner

aki77 commented Aug 31, 2015

Thank you for reporting. 😃

@chaserhkj
Copy link
Author

Reported to atom repository as atom/atom#8590

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants