-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
150 lines (138 loc) · 4.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<title>용량을 줄인 한글 가변 폰트</title>
<style>
@font-face {
font-family: 'Noto Sans KR Distilled';
src: url('./NotoSansKR-VF-distilled.woff2') format('woff2');
}
@font-face {
font-family: 'Noto Serif KR Distilled';
src: url('./NotoSerifKR-VF-distilled.woff2') format('woff2');
}
@font-face {
font-family: 'Pretendard KR Distilled';
src: url('./PretendardKR-VF-distilled.woff2') format('woff2');
}
@font-face {
font-family: 'Hahmlet Distilled';
src: url('./Hahmlet-VF-distilled.woff2') format('woff2');
}
:root {
font-family: 'Noto Sans KR Distilled', sans-serif;
line-height: 1.6;
}
body {
margin: 0 auto;
max-width: 48rem;
padding: 1rem;
}
h1 {
margin-bottom: 2rem;
}
h2 {
font-size: 1.5rem;
margin: 0 0 0.25rem;
}
input[type="range"] {
margin: 1rem 0;
}
.playground {
display: flex;
flex-direction: column;
gap: 1rem;
--weight: 100;
font-variation-settings: 'wght' var(--weight);
font-size: 1.3rem;
box-sizing: border-box;
padding: 1rem;
border: 1px solid #888;
margin: 1rem 0 2rem;
}
.playground p {
margin: 0;
padding: 0 0 0 1rem;
}
.playground .serif {
font-family: 'Noto Serif KR Distilled', serif;
}
.playground .sans {
font-family: 'Noto Sans KR Distilled', sans-serif;
}
.playground .pretendard {
font-family: 'Pretendard KR Distilled', sans-serif;
}
.playground .hahmlet {
font-family: 'Hahmlet Distilled', sans-serif;
}
</style>
<script>
window.addEventListener('DOMContentLoaded', () => {
const weight = document.querySelector('#weight')
const playgroundEl = document.querySelector('.playground')
weight.addEventListener('input', () => {
const value = +weight.value
playgroundEl.style.setProperty('--weight', value)
})
})
</script>
</head>
<body>
<h1>용량을 줄인 NotoSans 및 NotoSerif 가변 폰트</h1>
<p>
일상에서 쓰이는 한글 자모 조합과 ASCII의 출력 가능한 문자들만 추출하여 용량을 줄인 한글 가변 폰트 모음.
(<a href="https://github.com/akngs/noto-kr-vf-distilled">GitHub</a>,
<a href="https://github.com/akngs/noto-kr-vf-distilled/blob/main/LICENSE">SIL Open Font License 1.1</a>)
</p>
<input type="range" min="100" max="900" value="100" step="10" id="weight">
<div class="playground">
<div class="sans">
<h2>NotoSans (294K)</h2>
<p>동틀 녘 햇빛 포개짐. 팟타이꿍쏫, 펲시, 쑛팬츠, 찦차</p>
<p>The quick brown fox jumps over the lazy dog. 1234567890</p>
</div>
<div class="serif">
<h2>NotoSerif (602K)</h2>
<p>동틀 녘 햇빛 포개짐. 팟타이꿍쏫, 펲시, 쑛팬츠, 찦차</p>
<p>The quick brown fox jumps over the lazy dog. 1234567890</p>
</div>
<div class="pretendard">
<h2>Pretendard (502K)</h2>
<p>동틀 녘 햇빛 포개짐. 팟타이꿍쏫, 펲시, 쑛팬츠, 찦차</p>
<p>The quick brown fox jumps over the lazy dog. 1234567890</p>
</div>
<div class="hahmlet">
<h2>Hahmlet (538K)</h2>
<p>동틀 녘 햇빛 포개짐. 팟타이꿍쏫, 펲시, 쑛팬츠, 찦차</p>
<p>The quick brown fox jumps over the lazy dog. 1234567890</p>
</div>
</div>
<p>다운로드:</p>
<ul>
<li>
<a href="NotoSerifKR-VF-distilled.woff2">NotoSerifKR-VF-distilled.woff2</a>
/
<a href="https://github.com/googlefonts/noto-cjk">원본</a>
</li>
<li>
<a href="NotoSansKR-VF-distilled.woff2">NotoSansKR-VF-distilled.woff2</a>
/
<a href="https://github.com/googlefonts/noto-cjk">원본</a>
</li>
<li>
<a href="PretendardKR-VF-distilled.woff2">PretendardKR-VF-distilled.woff2</a>
/
<a href="https://github.com/orioncactus/pretendard">원본</a>
</li>
<li>
<a href="Hahmlet-VF-distilled.woff2">Hahmlet-VF-distilled.woff2</a>
/
<a href="https://github.com/hyper-type/hahmlet">원본</a>
</li>
</ul>
</body>
</html>