diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-05-26 13:30:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-26 13:30:54 +0900 |
| commit | 0264f4fe4aa5c91773a82aa60fc3ebdb5f24ec2f (patch) | |
| tree | f8f51efeaa24913cc14b0f17f08b0134f05b90d5 /src/librustdoc/html/static/rustdoc.css | |
| parent | 47a90f452050d4ea484206447babb07dd33c21d5 (diff) | |
| parent | 8a2d66337e49d5b8e60911cb34c9e15f5123488f (diff) | |
| download | rust-0264f4fe4aa5c91773a82aa60fc3ebdb5f24ec2f.tar.gz rust-0264f4fe4aa5c91773a82aa60fc3ebdb5f24ec2f.zip | |
Rollup merge of #84048 - konan8205:master, r=jsha
Avoid CJK legacy fonts in Windows As metioned in #84035, the default serif CJK font in Windows is meh-looking. To avoid this, we should use sans-serif font or provide CJK glyph supported font in `rustdoc.css`.
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 593c7cba3a7..f3866e211d9 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -66,6 +66,14 @@ font-display: swap; } +/* Avoid using legacy CJK serif fonts in Windows like Batang */ +@font-face { + font-family: 'Noto Sans KR'; + src: url("noto-sans-kr-v13-korean-regular.woff") format("woff"); + font-display: swap; + unicode-range: U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF; +} + * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; @@ -90,7 +98,7 @@ html { /* General structure and fonts */ body { - font: 16px/1.4 "Source Serif 4", serif; + font: 16px/1.4 "Source Serif 4", "Noto Sans KR", serif; margin: 0; position: relative; padding: 10px 15px 20px 15px; |
