gftools 0.1.1

Font manipulation library used by Google Fonts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Known font weights in the Google Fonts API and their corresponding numeric values.
pub const KNOWN_WEIGHTS: [(&str, u16); 11] = [
    ("Thin", 100),
    ("Hairline", 100),
    ("ExtraLight", 200),
    ("Light", 300),
    ("Regular", 400),
    ("", 400), // Family-Italic resolves to this
    ("Medium", 500),
    ("SemiBold", 600),
    ("Bold", 700),
    ("ExtraBold", 800),
    ("Black", 900),
];