pub enum FontSlot {
Mono,
Sans,
Display,
}Expand description
Layer 0 of the font model, re-exported for the same one-dependency reason.
A build script composing an override needs all four names and has no other
reason to depend on makeover directly.
A slot in the house font vocabulary — the unit an override replaces.
Three, and the third is deliberately empty by default: display is the
brand tier, it has no house answer, and a product that does not override it
leaves the token undefined so whatever the consumer wrote as a fallback
renders. The MNW embeds rely on exactly that.
Variants§
Mono
Code, data, identifiers, cell grids. FONT_MONO by default.
Sans
Body and UI text: everything that is not mono or brand. FONT_SANS.
Display
The brand / display tier. No house default, per cdf8ac09.
Implementations§
Trait Implementations§
impl Copy for FontSlot
impl Eq for FontSlot
impl StructuralPartialEq for FontSlot
Auto Trait Implementations§
impl Freeze for FontSlot
impl RefUnwindSafe for FontSlot
impl Send for FontSlot
impl Sync for FontSlot
impl Unpin for FontSlot
impl UnsafeUnpin for FontSlot
impl UnwindSafe for FontSlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more