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
  • Select an option

  • Save elleryq/248bc27b32a901c10dde to your computer and use it in GitHub Desktop.

Select an option

Save elleryq/248bc27b32a901c10dde to your computer and use it in GitHub Desktop.

Revisions

  1. elleryq revised this gist Jul 7, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions atom_chinese_settings.md
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,8 @@ atom-text-editor {
    atom-pane {
    font-family: "WenQuanYi Micro Hei Mono", sans-serif;
    }
    /* Make markdown preview to display chinese */
    .markdown-preview {
    font-family: "WenQuanYi Micro Hei Mono";
    }
    ```
  2. elleryq revised this gist Jul 7, 2015. 2 changed files with 25 additions and 10 deletions.
    25 changes: 25 additions & 0 deletions atom_chinese_settings.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    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;
    }
    ```
    10 changes: 0 additions & 10 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +0,0 @@
    In ~/.atom/styles.less, add the below css setting
    ```
    atom-text-editor {
    font-family: "Microsoft JhengHei", sans-serif;
    //font-size: 14px;
    }
    atom-pane {
    font-family: "Microsoft JhengHei", sans-serif;
    }
    ```
  3. @philipz philipz revised this gist Jun 26, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    In ~/.atom/styles.less, add the below css setting
    ```
    atom-text-editor {
    //font-family: "Microsoft JhengHei", sans-serif;
    font-family: "Microsoft JhengHei", sans-serif;
    //font-size: 14px;
    }
    atom-pane {
    //font-family: "Microsoft JhengHei", sans-serif;
    font-family: "Microsoft JhengHei", sans-serif;
    }
    ```
  4. @philipz philipz created this gist Jun 26, 2015.
    10 changes: 10 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    In ~/.atom/styles.less, add the below css setting
    ```
    atom-text-editor {
    //font-family: "Microsoft JhengHei", sans-serif;
    //font-size: 14px;
    }
    atom-pane {
    //font-family: "Microsoft JhengHei", sans-serif;
    }
    ```