blob: 360d875ad592f9211c737488a7d05ec424f39600 (
plain)
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
<!DOCTYPE HTML>
<html>
<head>
<title>Weight mapping tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: Futura, Verdana, sans-serif;
}
h3, h4 { font-weight: normal; }
/* make all the spans blocks to avoid influence of what's outside them
on line-height calculations */
span { display: block; }
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-light.ttf);
font-weight: 200;
}
@font-face {
font-family: test;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
font-weight: 500;
}
@font-face {
font-family: test200;
src: url(../fonts/mplus/mplus-1p-light.ttf);
}
@font-face {
font-family: test500;
src: url(../fonts/mplus/mplus-1p-medium.ttf);
}
table {
border-collapse: collapse;
font-family: test;
font-size: 20px;
}
td {
padding: 0; margin: 0;
}
th {
font-weight: inherit;
}
.red { color: red; }
th.cnor { font-weight: inherit; }
th.cbo { font-weight: bolder; }
th.cbobo, th.cbobo span { font-weight: bolder; }
th.cli { font-weight: lighter; }
th.clili, th.clili span { font-weight: lighter; }
td.cnor { font-weight: inherit; }
td.cbo { font-weight: bolder; }
td.cbobo, td.cbobo span { font-weight: bolder; }
td.cli { font-weight: lighter; }
td.clili, td.clili span { font-weight: lighter; }
thead { font-weight: 400; font-size: 75%; }
.w1 { font-weight: 100; }
.w2 { font-weight: 200; }
.w3 { font-weight: 300; }
.w4 { font-weight: 400; }
.w5 { font-weight: 500; }
.w6 { font-weight: 600; }
.w7 { font-weight: 700; }
.w8 { font-weight: 800; }
.w9 { font-weight: 900; }
</style>
</head>
<body>
<h3>Font family with 200, 500 weights</h3>
<table>
<thead>
<th></th>
<th class="clili"><span>lighter lighter</span></th>
<th class="cli"><span>lighter</span></th>
<th class="cnor"><span>normal</span></th>
<th class="cbo"><span>bolder</span></th>
<th class="cbobo"><span>bolder bolder</span></th>
</thead>
<tr class="w1">
<th>100</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w2">
<th class="red">200</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w3">
<th>300</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w4">
<th>400</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w5">
<th class="red">500</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w6">
<th>600</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w7">
<th>700</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w8">
<th>800</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
<tr class="w9">
<th>900</th>
<td class="clili"><span>東京特許許可局</span></td>
<td class="cli"><span>東京特許許可局</span></td>
<td class="cnor"><span>東京特許許可局</span></td>
<td class="cbo"><span>東京特許許可局</span></td>
<td class="cbobo"><span>東京特許許可局</span></td>
</tr>
</table>
<p>tokyotokkyokyokakyoku</p>
</body>
</html>
|