Skip to content

Commit

Permalink
Merge pull request picturepan2#228 from mzyy94/master
Browse files Browse the repository at this point in the history
Optimize Japanese font family
  • Loading branch information
picturepan2 authored Jun 28, 2017
2 parents 5865991 + b50b8cb commit a827f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/asian.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// Optimized for East Asian CJK
:lang(zh),
:lang(ja),
:lang(ko),
.cjk {
font-family: @cjk-font-family;
}

:lang(ja) {
font-family: @cjk-jp-font-family;
}

:lang(zh),
:lang(ja),
.cjk {
Expand Down
1 change: 1 addition & 0 deletions src/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// Credit: https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/
@base-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto;
@fallback-font-family: "Helvetica Neue", sans-serif;
@cjk-jp-font-family: @base-font-family, "Hiragino Sans", "Hiragino Kaku Gothic Pro", "Yu Gothic", YuGothic, Meiryo, @fallback-font-family;
@cjk-font-family: @base-font-family, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Kaku Gothic Pro", Meiryo, "Malgun Gothic", @fallback-font-family;
@body-font-family: @base-font-family, @fallback-font-family;

Expand Down

0 comments on commit a827f7e

Please sign in to comment.