Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commita827f7ec305999e010d329802e4611065f3f5544 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-06-28 11:49:14 +0800
Committer
 GitHub <noreply@github.com>
2017-06-28 11:49:14 +0800
Files81f4c481ebf8c73e1a7b7324ab20cbe559f0c353 /src
Spectre-Dark-Gruvbox-a827f7ec305999e010d329802e4611065f3f5544.tar
Spectre-Dark-Gruvbox-a827f7ec305999e010d329802e4611065f3f5544.tar.gz
Spectre-Dark-Gruvbox-a827f7ec305999e010d329802e4611065f3f5544.zip
Parent586599108f3b2bde4b739c2b186e9bb705ad0278 (diff)
Parentb50b8cbfa8cc184a01b96587fc00930297ee721b (diff)
Merge pull request #228 from mzyy94/master
Optimize Japanese font family
2 files changed, 5 insertions, 1 deletions
-rw-r--r--src/asian.less5
-rw-r--r--src/variables.less1
diff --git a/src/asian.less b/src/asian.less
index e0af88c..e3031f3 100644
--- a/src/asian.less
+++ b/src/asian.less
@@ -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 {
diff --git a/src/variables.less b/src/variables.less
index 63454ff..df0ec3f 100644
--- a/src/variables.less
+++ b/src/variables.less
@@ -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;