Skip to content

Instantly share code, notes, and snippets.

@elleryq
Forked from philipz/gist:20b7b29a7f13d94d5d21
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elleryq/248bc27b32a901c10dde to your computer and use it in GitHub Desktop.
Save elleryq/248bc27b32a901c10dde to your computer and use it in GitHub Desktop.

In ~/.atom/styles.less, add the below css setting

Windows

atom-text-editor {
  font-family: "Microsoft JhengHei", sans-serif;
  //font-size: 14px;
}
atom-pane {
  font-family: "Microsoft JhengHei", sans-serif;
}

Linux

If you are using Ubuntu, you have to install ttf-wqy-microhei and fonts-wqy-microhei

atom-text-editor {
  font-family: "WenQuanYi Micro Hei Mono", sans-serif;
  font-size: 14px;
}
atom-pane {
  font-family: "WenQuanYi Micro Hei Mono", sans-serif;
}
/* Make markdown preview to display chinese */
.markdown-preview {
  font-family: "WenQuanYi Micro Hei Mono";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment