pub struct FontSizes {
pub title: f32,
pub block_type: f32,
pub pin: f32,
pub pin_subtitle: f32,
pub tag: f32,
pub route: f32,
}Expand description
The six canvas text sizes (in px), the font counterpart to the role → base
color mapping. Layered onto Theme from the embedded font_sizes.json
(see Theme::from_embedded) and tuned live by the font editor
(--font-editor). #[serde(default)] lets a partial file specify only the
sizes it overrides; the rest fall back to FontSizes::default.
Fields§
§title: f32§block_type: f32§pin: f32§pin_subtitle: f32§tag: f32§route: f32Trait Implementations§
Source§impl<'de> Deserialize<'de> for FontSizes
impl<'de> Deserialize<'de> for FontSizes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FontSizes
impl StructuralPartialEq for FontSizes
Auto Trait Implementations§
impl Freeze for FontSizes
impl RefUnwindSafe for FontSizes
impl Send for FontSizes
impl Sync for FontSizes
impl Unpin for FontSizes
impl UnsafeUnpin for FontSizes
impl UnwindSafe for FontSizes
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