Skip to content

Commit c150772

Browse files
author
Shinwoo Park
committed
rustdoc: avoid legacy Korean fonts in Windows
1 parent 1025db8 commit c150772

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Binary file not shown.

src/librustdoc/html/static/rustdoc.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@
6666
font-display: swap;
6767
}
6868

69+
/* Avoid legacy CJK fonts in Windows */
70+
@font-face {
71+
font-family: 'Noto Sans KR';
72+
src: url("noto-sans-kr-v13-korean-regular.woff") format("woff");
73+
font-display: swap;
74+
unicode-range: U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF;
75+
}
76+
6977
* {
7078
-webkit-box-sizing: border-box;
7179
-moz-box-sizing: border-box;
@@ -90,7 +98,7 @@ html {
9098
/* General structure and fonts */
9199

92100
body {
93-
font: 16px/1.4 "Source Serif 4", serif;
101+
font: 16px/1.4 "Source Serif 4", "Noto Sans KR", serif;
94102
margin: 0;
95103
position: relative;
96104
padding: 10px 15px 20px 15px;

0 commit comments

Comments
 (0)