Skip to main content

parse_font_weight

Function parse_font_weight 

Source
pub fn parse_font_weight(
    ctx: &str,
    name: &str,
    value: &str,
) -> Result<u16, ParseError>
Expand description

CSS font-weight: normal (400), bold (700), or a number in 1..=1000 (CSS Fonts 4). The relative keywords lighter / bolder need the parent’s computed weight and are rejected.