From c6fcc3121758dfe6ac5b50c1b55790eb42b805c5 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 5 Jan 2018 10:26:22 +0800 Subject: [PATCH] More readable font family for chinese quote --- components/style/core/base.less | 6 ++++++ components/style/themes/default.less | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/style/core/base.less b/components/style/core/base.less index 7de66b7dd8..171d25aef8 100644 --- a/components/style/core/base.less +++ b/components/style/core/base.less @@ -14,6 +14,12 @@ unicode-range: U+30-39; } +@font-face { + font-family: "Chinese Quote"; + src: local("PingFang SC"), local("SimSun"); + unicode-range: U+201c, U+201d; +} + // HTML & Body reset html, body { .square(100%); diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 581c84c63a..19860ab0fb 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -34,7 +34,7 @@ @body-background : #fff; // Base background color for most components @component-background : #fff; -@font-family-no-number : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; +@font-family-no-number : "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; @font-family : "Helvetica Neue For Number", @font-family-no-number; @code-family : Consolas, Menlo, Courier, monospace; @heading-color : fade(#000, 85%);