pub struct FontSel {
pub family: String,
pub weight: u32,
pub italic: bool,
pub size: f64,
pub axes: Vec<([u8; 4], f32)>,
}Expand description
a font choice (see the module header)
Fields§
§family: String§weight: u32§italic: bool§size: f64points
axes: Vec<([u8; 4], f32)>axis values of a variable family in user units by tag ((*b"wdth", 87.5)); the axes
not named follow weight (wght), italic (ital, slnt) and size (opsz), else their
defaults; families that are not variable ignore them
Implementations§
Trait Implementations§
impl StructuralPartialEq for FontSel
Auto Trait Implementations§
impl Forget for FontSel
impl Freeze for FontSel
impl RefUnwindSafe for FontSel
impl Send for FontSel
impl Sync for FontSel
impl Unpin for FontSel
impl UnsafeUnpin for FontSel
impl UnwindSafe for FontSel
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