use std::collections::HashMap;
#[derive(Debug, Clone)]
pub struct FontFamily {
pub name: String,
pub fonts: HashMap<FontWeight, TTFFont>,
}
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct TTFFont {
pub name: String,
pub path: String,
}
#[allow(missing_docs)]
#[derive(Debug, Clone, Eq, PartialEq)]
pub enum FontWeight {
Black = 900,
ExtraBold = 800,
Bold = 700,
SemiBold = 600,
Medium = 500,
Regular = 400,
Light = 300,
ExtraLight = 200,
Thin = 100,
}
impl Default for FontWeight {
fn default() -> Self {
FontWeight::Regular
}
}