From 5859ed22b3d871d6233d067a5d16cac1acfef703 Mon Sep 17 00:00:00 2001 From: CodePlayer Date: Mon, 3 Jun 2019 18:01:30 +0800 Subject: [PATCH] Create simple-font.css MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增精简字体规格定义的常规CSS文件,使用 font-display 属性增强交互体验 --- .../NotoSansCJKsc-hinted-slim/simple-font.css | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dist/NotoSans/NotoSansCJKsc-hinted/subset/NotoSansCJKsc-hinted-slim/simple-font.css diff --git a/dist/NotoSans/NotoSansCJKsc-hinted/subset/NotoSansCJKsc-hinted-slim/simple-font.css b/dist/NotoSans/NotoSansCJKsc-hinted/subset/NotoSansCJKsc-hinted-slim/simple-font.css new file mode 100644 index 0000000..7c838e3 --- /dev/null +++ b/dist/NotoSans/NotoSansCJKsc-hinted/subset/NotoSansCJKsc-hinted-slim/simple-font.css @@ -0,0 +1,33 @@ +/* Noto Sans CJK SC */ + +@font-face { + font-family: 'Noto Sans CJK SC'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: local('☺'), url('NotoSansCJKsc-Regular.woff2') format('woff2'), url('NotoSansCJKsc-Regular.woff') format('woff'), url('NotoSansCJKsc-Regular.otf') format('opentype'); +} + +@font-face { + font-family: 'Noto Sans CJK SC'; + font-style: normal; + font-weight: 100; + font-display: fallback; + src: local('☺'), url('NotoSansCJKsc-Thin.woff2') format('woff2'), url('NotoSansCJKsc-Thin.woff') format('woff'), url('NotoSansCJKsc-Thin.otf') format('opentype'); +} + +@font-face { + font-family: 'Noto Sans CJK SC'; + font-style: normal; + font-weight: 500; + font-display: fallback; + src: local('☺'), url('NotoSansCJKsc-Medium.woff2') format('woff2'), url('NotoSansCJKsc-Medium.woff') format('woff'), url('NotoSansCJKsc-Medium.otf') format('opentype'); +} + +@font-face { + font-family: 'Noto Sans CJK SC'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: local('☺'), url('NotoSansCJKsc-Bold.woff2') format('woff2'), url('NotoSansCJKsc-Bold.woff') format('woff'), url('NotoSansCJKsc-Bold.otf') format('opentype'); +}