Introduce Weight enum to font
This commit is contained in:
parent
eb3cd3a321
commit
32309f0140
3 changed files with 18 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
//! Load and use fonts.
|
||||
use std::hash::Hash;
|
||||
|
||||
/// A font.
|
||||
|
|
@ -27,3 +28,18 @@ pub enum Font {
|
|||
/// fixed width.
|
||||
Monospace,
|
||||
}
|
||||
|
||||
/// The weight of some text.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum Weight {
|
||||
Thin,
|
||||
ExtraLight,
|
||||
Light,
|
||||
Normal,
|
||||
Medium,
|
||||
Semibold,
|
||||
Bold,
|
||||
ExtraBold,
|
||||
Black,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue