Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>font-stretch mapping tests</title> |
michael@0 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
michael@0 | 6 | |
michael@0 | 7 | <style type="text/css"> |
michael@0 | 8 | |
michael@0 | 9 | body { |
michael@0 | 10 | margin: 50px; |
michael@0 | 11 | font-family: Verdana, sans-serif; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | h3, h4 { font-weight: normal; } |
michael@0 | 15 | |
michael@0 | 16 | table { |
michael@0 | 17 | border-collapse: collapse; |
michael@0 | 18 | font-size: 28px; |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | td { |
michael@0 | 22 | padding: 0; margin: 0; |
michael@0 | 23 | font-family: test; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | th { |
michael@0 | 27 | font-weight: inherit; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | p { width: 300px; } |
michael@0 | 31 | |
michael@0 | 32 | .red { color: red; } |
michael@0 | 33 | |
michael@0 | 34 | thead { font-weight: 400; font-size: 75%; } |
michael@0 | 35 | |
michael@0 | 36 | /* make all the spans blocks to avoid influence of what's outside them |
michael@0 | 37 | on line-height calculations */ |
michael@0 | 38 | span { display: block; } |
michael@0 | 39 | |
michael@0 | 40 | @font-face { |
michael@0 | 41 | font-family: test; |
michael@0 | 42 | src: url(../fonts/mplus/mplus-1p-light.ttf); |
michael@0 | 43 | font-weight: 200; |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | @font-face { |
michael@0 | 47 | font-family: test; |
michael@0 | 48 | src: url(../fonts/mplus/mplus-1p-medium.ttf); |
michael@0 | 49 | font-weight: 500; |
michael@0 | 50 | } |
michael@0 | 51 | |
michael@0 | 52 | @font-face { |
michael@0 | 53 | font-family: test; |
michael@0 | 54 | src: url(../fonts/mplus/mplus-1p-thin.ttf); |
michael@0 | 55 | font-weight: 100; |
michael@0 | 56 | font-stretch: condensed; |
michael@0 | 57 | } |
michael@0 | 58 | |
michael@0 | 59 | @font-face { |
michael@0 | 60 | font-family: test; |
michael@0 | 61 | src: url(../fonts/mplus/mplus-1p-black.ttf); |
michael@0 | 62 | font-weight: 900; |
michael@0 | 63 | font-stretch: condensed; |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | @font-face { |
michael@0 | 67 | font-family: test100; |
michael@0 | 68 | src: url(../fonts/mplus/mplus-1p-thin.ttf); |
michael@0 | 69 | font-weight: 100; |
michael@0 | 70 | } |
michael@0 | 71 | |
michael@0 | 72 | @font-face { |
michael@0 | 73 | font-family: test200; |
michael@0 | 74 | src: url(../fonts/mplus/mplus-1p-light.ttf); |
michael@0 | 75 | font-weight: 200; |
michael@0 | 76 | } |
michael@0 | 77 | |
michael@0 | 78 | @font-face { |
michael@0 | 79 | font-family: test500; |
michael@0 | 80 | src: url(../fonts/mplus/mplus-1p-medium.ttf); |
michael@0 | 81 | font-weight: 500; |
michael@0 | 82 | } |
michael@0 | 83 | |
michael@0 | 84 | @font-face { |
michael@0 | 85 | font-family: test900; |
michael@0 | 86 | src: url(../fonts/mplus/mplus-1p-black.ttf); |
michael@0 | 87 | font-weight: 900; |
michael@0 | 88 | } |
michael@0 | 89 | |
michael@0 | 90 | .w1 { font-weight: 100; } |
michael@0 | 91 | .w2 { font-weight: 200; } |
michael@0 | 92 | .w3 { font-weight: 300; } |
michael@0 | 93 | .w4 { font-weight: 400; } |
michael@0 | 94 | .w5 { font-weight: 500; } |
michael@0 | 95 | .w6 { font-weight: 600; } |
michael@0 | 96 | .w7 { font-weight: 700; } |
michael@0 | 97 | .w8 { font-weight: 800; } |
michael@0 | 98 | .w9 { font-weight: 900; } |
michael@0 | 99 | |
michael@0 | 100 | .w1 .fs1 { font-family: test100; } |
michael@0 | 101 | .w2 .fs1 { font-family: test100; } |
michael@0 | 102 | .w3 .fs1 { font-family: test100; } |
michael@0 | 103 | .w4 .fs1 { font-family: test100; } |
michael@0 | 104 | .w5 .fs1 { font-family: test100; } |
michael@0 | 105 | .w6 .fs1 { font-family: test900; } |
michael@0 | 106 | .w7 .fs1 { font-family: test900; } |
michael@0 | 107 | .w8 .fs1 { font-family: test900; } |
michael@0 | 108 | .w9 .fs1 { font-family: test900; } |
michael@0 | 109 | |
michael@0 | 110 | .w1 .fs2 { font-family: test100; } |
michael@0 | 111 | .w2 .fs2 { font-family: test100; } |
michael@0 | 112 | .w3 .fs2 { font-family: test100; } |
michael@0 | 113 | .w4 .fs2 { font-family: test100; } |
michael@0 | 114 | .w5 .fs2 { font-family: test100; } |
michael@0 | 115 | .w6 .fs2 { font-family: test900; } |
michael@0 | 116 | .w7 .fs2 { font-family: test900; } |
michael@0 | 117 | .w8 .fs2 { font-family: test900; } |
michael@0 | 118 | .w9 .fs2 { font-family: test900; } |
michael@0 | 119 | |
michael@0 | 120 | .w1 .fs3 { font-family: test100; } |
michael@0 | 121 | .w2 .fs3 { font-family: test100; } |
michael@0 | 122 | .w3 .fs3 { font-family: test100; } |
michael@0 | 123 | .w4 .fs3 { font-family: test100; } |
michael@0 | 124 | .w5 .fs3 { font-family: test100; } |
michael@0 | 125 | .w6 .fs3 { font-family: test900; } |
michael@0 | 126 | .w7 .fs3 { font-family: test900; } |
michael@0 | 127 | .w8 .fs3 { font-family: test900; } |
michael@0 | 128 | .w9 .fs3 { font-family: test900; } |
michael@0 | 129 | |
michael@0 | 130 | .w1 .fs4 { font-family: test100; } |
michael@0 | 131 | .w2 .fs4 { font-family: test100; } |
michael@0 | 132 | .w3 .fs4 { font-family: test100; } |
michael@0 | 133 | .w4 .fs4 { font-family: test100; } |
michael@0 | 134 | .w5 .fs4 { font-family: test100; } |
michael@0 | 135 | .w6 .fs4 { font-family: test900; } |
michael@0 | 136 | .w7 .fs4 { font-family: test900; } |
michael@0 | 137 | .w8 .fs4 { font-family: test900; } |
michael@0 | 138 | .w9 .fs4 { font-family: test900; } |
michael@0 | 139 | |
michael@0 | 140 | .w1 .fs5 { font-family: test200; } |
michael@0 | 141 | .w2 .fs5 { font-family: test200; } |
michael@0 | 142 | .w3 .fs5 { font-family: test200; } |
michael@0 | 143 | .w4 .fs5 { font-family: test500; } |
michael@0 | 144 | .w5 .fs5 { font-family: test500; } |
michael@0 | 145 | .w6 .fs5 { font-family: test500; } |
michael@0 | 146 | .w7 .fs5 { font-family: test500; } |
michael@0 | 147 | .w8 .fs5 { font-family: test500; } |
michael@0 | 148 | .w9 .fs5 { font-family: test500; } |
michael@0 | 149 | |
michael@0 | 150 | .w1 .fs6 { font-family: test200; } |
michael@0 | 151 | .w2 .fs6 { font-family: test200; } |
michael@0 | 152 | .w3 .fs6 { font-family: test200; } |
michael@0 | 153 | .w4 .fs6 { font-family: test500; } |
michael@0 | 154 | .w5 .fs6 { font-family: test500; } |
michael@0 | 155 | .w6 .fs6 { font-family: test500; } |
michael@0 | 156 | .w7 .fs6 { font-family: test500; } |
michael@0 | 157 | .w8 .fs6 { font-family: test500; } |
michael@0 | 158 | .w9 .fs6 { font-family: test500; } |
michael@0 | 159 | |
michael@0 | 160 | .w1 .fs7 { font-family: test200; } |
michael@0 | 161 | .w2 .fs7 { font-family: test200; } |
michael@0 | 162 | .w3 .fs7 { font-family: test200; } |
michael@0 | 163 | .w4 .fs7 { font-family: test500; } |
michael@0 | 164 | .w5 .fs7 { font-family: test500; } |
michael@0 | 165 | .w6 .fs7 { font-family: test500; } |
michael@0 | 166 | .w7 .fs7 { font-family: test500; } |
michael@0 | 167 | .w8 .fs7 { font-family: test500; } |
michael@0 | 168 | .w9 .fs7 { font-family: test500; } |
michael@0 | 169 | |
michael@0 | 170 | .w1 .fs8 { font-family: test200; } |
michael@0 | 171 | .w2 .fs8 { font-family: test200; } |
michael@0 | 172 | .w3 .fs8 { font-family: test200; } |
michael@0 | 173 | .w4 .fs8 { font-family: test500; } |
michael@0 | 174 | .w5 .fs8 { font-family: test500; } |
michael@0 | 175 | .w6 .fs8 { font-family: test500; } |
michael@0 | 176 | .w7 .fs8 { font-family: test500; } |
michael@0 | 177 | .w8 .fs8 { font-family: test500; } |
michael@0 | 178 | .w9 .fs8 { font-family: test500; } |
michael@0 | 179 | |
michael@0 | 180 | .w1 .fs9 { font-family: test200; } |
michael@0 | 181 | .w2 .fs9 { font-family: test200; } |
michael@0 | 182 | .w3 .fs9 { font-family: test200; } |
michael@0 | 183 | .w4 .fs9 { font-family: test500; } |
michael@0 | 184 | .w5 .fs9 { font-family: test500; } |
michael@0 | 185 | .w6 .fs9 { font-family: test500; } |
michael@0 | 186 | .w7 .fs9 { font-family: test500; } |
michael@0 | 187 | .w8 .fs9 { font-family: test500; } |
michael@0 | 188 | .w9 .fs9 { font-family: test500; } |
michael@0 | 189 | |
michael@0 | 190 | </style> |
michael@0 | 191 | </head> |
michael@0 | 192 | <body> |
michael@0 | 193 | |
michael@0 | 194 | <p>Font family with normal width 200, 500 and condensed 100, 900</p> |
michael@0 | 195 | |
michael@0 | 196 | <table> |
michael@0 | 197 | <thead> |
michael@0 | 198 | <th></th> |
michael@0 | 199 | <th>1</th> |
michael@0 | 200 | <th>2</th> |
michael@0 | 201 | <th class="red">3</th> |
michael@0 | 202 | <th>4</th> |
michael@0 | 203 | <th class="red">5</th> |
michael@0 | 204 | <th>6</th> |
michael@0 | 205 | <th>7</th> |
michael@0 | 206 | <th>8</th> |
michael@0 | 207 | <th>9</th> |
michael@0 | 208 | </thead> |
michael@0 | 209 | <tr class="w1"> |
michael@0 | 210 | <th>100</th> |
michael@0 | 211 | <td class="fs1"><span>あ</span></td> |
michael@0 | 212 | <td class="fs2"><span>あ</span></td> |
michael@0 | 213 | <td class="fs3"><span>あ</span></td> |
michael@0 | 214 | <td class="fs4"><span>あ</span></td> |
michael@0 | 215 | <td class="fs5"><span>あ</span></td> |
michael@0 | 216 | <td class="fs6"><span>あ</span></td> |
michael@0 | 217 | <td class="fs7"><span>あ</span></td> |
michael@0 | 218 | <td class="fs8"><span>あ</span></td> |
michael@0 | 219 | <td class="fs9"><span>あ</span></td> |
michael@0 | 220 | </tr> |
michael@0 | 221 | <tr class="w2"> |
michael@0 | 222 | <th>200</th> |
michael@0 | 223 | <td class="fs1"><span>あ</span></td> |
michael@0 | 224 | <td class="fs2"><span>あ</span></td> |
michael@0 | 225 | <td class="fs3"><span>あ</span></td> |
michael@0 | 226 | <td class="fs4"><span>あ</span></td> |
michael@0 | 227 | <td class="fs5"><span>あ</span></td> |
michael@0 | 228 | <td class="fs6"><span>あ</span></td> |
michael@0 | 229 | <td class="fs7"><span>あ</span></td> |
michael@0 | 230 | <td class="fs8"><span>あ</span></td> |
michael@0 | 231 | <td class="fs9"><span>あ</span></td> |
michael@0 | 232 | </tr> |
michael@0 | 233 | <tr class="w3"> |
michael@0 | 234 | <th>300</th> |
michael@0 | 235 | <td class="fs1"><span>あ</span></td> |
michael@0 | 236 | <td class="fs2"><span>あ</span></td> |
michael@0 | 237 | <td class="fs3"><span>あ</span></td> |
michael@0 | 238 | <td class="fs4"><span>あ</span></td> |
michael@0 | 239 | <td class="fs5"><span>あ</span></td> |
michael@0 | 240 | <td class="fs6"><span>あ</span></td> |
michael@0 | 241 | <td class="fs7"><span>あ</span></td> |
michael@0 | 242 | <td class="fs8"><span>あ</span></td> |
michael@0 | 243 | <td class="fs9"><span>あ</span></td> |
michael@0 | 244 | </tr> |
michael@0 | 245 | <tr class="w4"> |
michael@0 | 246 | <th>400</th> |
michael@0 | 247 | <td class="fs1"><span>あ</span></td> |
michael@0 | 248 | <td class="fs2"><span>あ</span></td> |
michael@0 | 249 | <td class="fs3"><span>あ</span></td> |
michael@0 | 250 | <td class="fs4"><span>あ</span></td> |
michael@0 | 251 | <td class="fs5"><span>あ</span></td> |
michael@0 | 252 | <td class="fs6"><span>あ</span></td> |
michael@0 | 253 | <td class="fs7"><span>あ</span></td> |
michael@0 | 254 | <td class="fs8"><span>あ</span></td> |
michael@0 | 255 | <td class="fs9"><span>あ</span></td> |
michael@0 | 256 | </tr> |
michael@0 | 257 | <tr class="w5"> |
michael@0 | 258 | <th>500</th> |
michael@0 | 259 | <td class="fs1"><span>あ</span></td> |
michael@0 | 260 | <td class="fs2"><span>あ</span></td> |
michael@0 | 261 | <td class="fs3"><span>あ</span></td> |
michael@0 | 262 | <td class="fs4"><span>あ</span></td> |
michael@0 | 263 | <td class="fs5"><span>あ</span></td> |
michael@0 | 264 | <td class="fs6"><span>あ</span></td> |
michael@0 | 265 | <td class="fs7"><span>あ</span></td> |
michael@0 | 266 | <td class="fs8"><span>あ</span></td> |
michael@0 | 267 | <td class="fs9"><span>あ</span></td> |
michael@0 | 268 | </tr> |
michael@0 | 269 | <tr class="w6"> |
michael@0 | 270 | <th>600</th> |
michael@0 | 271 | <td class="fs1"><span>あ</span></td> |
michael@0 | 272 | <td class="fs2"><span>あ</span></td> |
michael@0 | 273 | <td class="fs3"><span>あ</span></td> |
michael@0 | 274 | <td class="fs4"><span>あ</span></td> |
michael@0 | 275 | <td class="fs5"><span>あ</span></td> |
michael@0 | 276 | <td class="fs6"><span>あ</span></td> |
michael@0 | 277 | <td class="fs7"><span>あ</span></td> |
michael@0 | 278 | <td class="fs8"><span>あ</span></td> |
michael@0 | 279 | <td class="fs9"><span>あ</span></td> |
michael@0 | 280 | </tr> |
michael@0 | 281 | <tr class="w7"> |
michael@0 | 282 | <th>700</th> |
michael@0 | 283 | <td class="fs1"><span>あ</span></td> |
michael@0 | 284 | <td class="fs2"><span>あ</span></td> |
michael@0 | 285 | <td class="fs3"><span>あ</span></td> |
michael@0 | 286 | <td class="fs4"><span>あ</span></td> |
michael@0 | 287 | <td class="fs5"><span>あ</span></td> |
michael@0 | 288 | <td class="fs6"><span>あ</span></td> |
michael@0 | 289 | <td class="fs7"><span>あ</span></td> |
michael@0 | 290 | <td class="fs8"><span>あ</span></td> |
michael@0 | 291 | <td class="fs9"><span>あ</span></td> |
michael@0 | 292 | </tr> |
michael@0 | 293 | <tr class="w8"> |
michael@0 | 294 | <th>800</th> |
michael@0 | 295 | <td class="fs1"><span>あ</span></td> |
michael@0 | 296 | <td class="fs2"><span>あ</span></td> |
michael@0 | 297 | <td class="fs3"><span>あ</span></td> |
michael@0 | 298 | <td class="fs4"><span>あ</span></td> |
michael@0 | 299 | <td class="fs5"><span>あ</span></td> |
michael@0 | 300 | <td class="fs6"><span>あ</span></td> |
michael@0 | 301 | <td class="fs7"><span>あ</span></td> |
michael@0 | 302 | <td class="fs8"><span>あ</span></td> |
michael@0 | 303 | <td class="fs9"><span>あ</span></td> |
michael@0 | 304 | </tr> |
michael@0 | 305 | <tr class="w9"> |
michael@0 | 306 | <th>900</th> |
michael@0 | 307 | <td class="fs1"><span>あ</span></td> |
michael@0 | 308 | <td class="fs2"><span>あ</span></td> |
michael@0 | 309 | <td class="fs3"><span>あ</span></td> |
michael@0 | 310 | <td class="fs4"><span>あ</span></td> |
michael@0 | 311 | <td class="fs5"><span>あ</span></td> |
michael@0 | 312 | <td class="fs6"><span>あ</span></td> |
michael@0 | 313 | <td class="fs7"><span>あ</span></td> |
michael@0 | 314 | <td class="fs8"><span>あ</span></td> |
michael@0 | 315 | <td class="fs9"><span>あ</span></td> |
michael@0 | 316 | </tr> |
michael@0 | 317 | </table> |
michael@0 | 318 | |
michael@0 | 319 | </body> |
michael@0 | 320 | </html> |