pub struct FontSettings<'a> {
pub features: &'a [([u8; 4], u32)],
pub variations: &'a [([u8; 4], f32)],
pub language: Option<&'a str>,
pub optical_size: OpticalSize,
}Fields§
§features: &'a [([u8; 4], u32)]§variations: &'a [([u8; 4], f32)]§language: Option<&'a str>§optical_size: OpticalSizeImplementations§
Source§impl<'a> FontSettings<'a>
impl<'a> FontSettings<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
creates a new FontSettings
Sourcepub fn variations(self, value: &'a [([u8; 4], f32)]) -> Self
pub fn variations(self, value: &'a [([u8; 4], f32)]) -> Self
sets Self::variations
Sourcepub fn optical_size(self, value: OpticalSize) -> Self
pub fn optical_size(self, value: OpticalSize) -> Self
sets Self::optical_size
Trait Implementations§
Source§impl<'a> Clone for FontSettings<'a>
impl<'a> Clone for FontSettings<'a>
impl<'a> Copy for FontSettings<'a>
Source§impl<'a> Debug for FontSettings<'a>
impl<'a> Debug for FontSettings<'a>
Source§impl<'a> Default for FontSettings<'a>
impl<'a> Default for FontSettings<'a>
Source§impl<'a> PartialEq for FontSettings<'a>
impl<'a> PartialEq for FontSettings<'a>
impl<'a> StructuralPartialEq for FontSettings<'a>
Auto Trait Implementations§
impl<'a> Forget for FontSettings<'a>
impl<'a> Freeze for FontSettings<'a>
impl<'a> Move for FontSettings<'a>
impl<'a> RefUnwindSafe for FontSettings<'a>
impl<'a> Send for FontSettings<'a>
impl<'a> Sync for FontSettings<'a>
impl<'a> Unpin for FontSettings<'a>
impl<'a> UnsafeUnpin for FontSettings<'a>
impl<'a> UnwindSafe for FontSettings<'a>
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