+
5 Font Matching Algorithm |
font-matching-rule-001 |
|
Ahem |
Font Matching Algorithm, Match Font-Family
- If font property match then use the font specified by font-family, if font property doesn't match, don't even try to match font-family.
|
font-matching-rule-006 |
|
Ahem |
Font Matching Algorithm, match font-style
- If the font contains definition of 'italic' or 'oblique' and italic or oblique is set by the style, then use that font.
|
font-matching-rule-009 |
= |
Invalid |
Font Matching Algorithm, font-weight out of range
- Invalid font weight values are set to the default weight of 400.
|
font-matching-rule-010 |
|
Font |
Font Matching Algorithm, font-variant never fails if property does not match
- If a font property value is not defined, user agent still can use normal value of that property.
|
font-matching-rule-012 |
|
Ahem |
Font Matching Algorithm, font-size and rounding
- The font-size for scalable fonts are rounded to the nearest whole pixel.
|
font-matching-rule-014 |
|
Font |
Font Matching Algorithm, same fonts
- If all available fonts are exactly same in all properties, the user agent selects one of them.
|
font-style-rule-001 |
|
Font |
Font-style with font properties missing
- When font-style italic is not available, find value oblique, if it's still not available, either use the alternate font-family that has italic or oblique value or use 'font-style: normal'.
|
fonts-010 |
= |
Ahem |
font inheritance into <pre> elements
|
fonts-011 |
= |
Ahem |
Fonts and bidi
|
fonts-012 |
= |
Ahem |
Fonts and not bidi
|
fonts-013 |
= |
Ahem |
font and fallbacks
|
fonts-014 |
= |
Ahem |
font and fallbacks
|
+
5.2 Matching font styles |
font-matching-rule-001 |
|
Ahem |
Font Matching Algorithm, Match Font-Family
- If font property match then use the font specified by font-family, if font property doesn't match, don't even try to match font-family.
|
font-matching-rule-006 |
|
Ahem |
Font Matching Algorithm, match font-style
- If the font contains definition of 'italic' or 'oblique' and italic or oblique is set by the style, then use that font.
|
font-matching-rule-009 |
= |
Invalid |
Font Matching Algorithm, font-weight out of range
- Invalid font weight values are set to the default weight of 400.
|
font-matching-rule-010 |
|
Font |
Font Matching Algorithm, font-variant never fails if property does not match
- If a font property value is not defined, user agent still can use normal value of that property.
|
font-matching-rule-012 |
|
Ahem |
Font Matching Algorithm, font-size and rounding
- The font-size for scalable fonts are rounded to the nearest whole pixel.
|
font-matching-rule-014 |
|
Font |
Font Matching Algorithm, same fonts
- If all available fonts are exactly same in all properties, the user agent selects one of them.
|