|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: fonts.src,v 2.101 2010-08-26 16:44:25 bbos Exp $ --> |
| 3 | +<!-- $Id: fonts.src,v 2.102 2010-10-13 15:39:24 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <title>Fonts</title> |
6 | 6 | <meta name="editor" lang="tr" content="Tantek Çelik"> |
@@ -461,31 +461,41 @@ scale in which the value '400' (or 'normal') corresponds to the |
461 | 461 | that face will typically be <em>Book, Regular, Roman, Normal</em> or |
462 | 462 | sometimes <em>Medium</em>. |
463 | 463 | </p> |
| 464 | + |
464 | 465 | <p>The association of other weights within a family to the numerical |
465 | 466 | weight values is intended only to preserve the ordering of darkness |
466 | 467 | within that family. However, the following heuristics tell how the |
467 | | -assignment is done in typical cases: |
468 | | -</p> |
| 468 | +assignment is done in this case: |
| 469 | + |
469 | 470 | <ul> |
470 | 471 | <li>If the font family already uses a numerical scale with nine values |
471 | 472 | (like e.g., <em>OpenType</em> does), the font weights should be mapped |
472 | 473 | directly. |
473 | | -</li> |
| 474 | + |
474 | 475 | <li>If there is both a face labeled <em>Medium</em> and one labeled |
475 | 476 | <em>Book, Regular, Roman</em> or <em>Normal,</em> then the |
476 | 477 | <em>Medium</em> is normally assigned to the '500'. |
477 | | -</li> |
| 478 | + |
478 | 479 | <li>The font labeled "Bold" will often correspond to the weight value '700'. |
479 | | -</li> |
480 | | -<li>If there are fewer then 9 weights in the family, the default |
481 | | -algorithm for filling the "holes" is as follows. If '500' is |
482 | | -unassigned, it will be assigned the same font as '400'. If any of the |
483 | | -values '600', '700', '800' or '900' remains unassigned, they are |
484 | | -assigned to the same face as the next darker assigned keyword, if any, |
485 | | -or the next lighter one otherwise. If any of '300', '200' or '100' |
486 | | -remains unassigned, it is assigned to the next lighter assigned |
487 | | -keyword, if any, or the next darker otherwise. |
488 | | -</li> |
| 480 | +</ul> |
| 481 | + |
| 482 | +<p>Once the font family's weights are mapped onto the CSS scale, |
| 483 | +missing weights are selected as follows: |
| 484 | + |
| 485 | +<ul> |
| 486 | +<li>If the desired weight is less than 400, weights below the desired |
| 487 | +weight are checked in descending order followed by weights above the |
| 488 | +desired weight in ascending order until a match is found. |
| 489 | + |
| 490 | +<li>If the desired weight is greater than 500, weights above desired |
| 491 | +weight are checked in ascending order followed by weights below the |
| 492 | +desired weight in descending order until a match is found. |
| 493 | + |
| 494 | +<li>If the desired weight is 400, 500 is checked first and then the |
| 495 | +rule for desired weights less than 400 is used. |
| 496 | + |
| 497 | +<li>If the desired weight is 500, 400 is checked first and then the |
| 498 | +rule for desired weights less than 400 is used. |
489 | 499 | </ul> |
490 | 500 |
|
491 | 501 | <p>The following two examples show typical mappings.</p> |
|
0 commit comments