1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use super::*;
impl TailwindFontSmoothing {
#[inline]
pub fn new(subpixel: bool) -> Self {
match subpixel {
true => Self::Subpixel,
false => Self::Normal,
}
}
}
impl TailwindFontSize {
#[inline]
pub fn new(size: f32, height: f32) -> Self {
Self { size: size, height: height }
}
}
impl TailwindFontWeight {
pub const THIN: Self = Self { weight: 100 };
pub const EXTRA_LIGHT: Self = Self { weight: 200 };
pub const LIGHT: Self = Self { weight: 300 };
pub const NORMAL: Self = Self { weight: 400 };
pub const MEDIUM: Self = Self { weight: 500 };
pub const SEMI_BOLD: Self = Self { weight: 600 };
pub const BOLD: Self = Self { weight: 700 };
pub const EXTRA_BOLD: Self = Self { weight: 800 };
pub const BLACK: Self = Self { weight: 900 };
#[inline]
pub fn new(weight: usize) -> Self {
Self { weight }
}
}