pub struct FontFaceBuilder { /* private fields */ }Expand description
Builder for FontFace.
Implementations§
Source§impl FontFaceBuilder
impl FontFaceBuilder
Sourcepub fn font_family<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn font_family<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The font-family.
Sourcepub fn font_style<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn font_style<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The font-style.
Sourcepub fn font_variant<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn font_variant<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The font-variant.
Sourcepub fn font_weight<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn font_weight<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The font-weight.
Sourcepub fn font_stretch<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn font_stretch<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The font-stretch.
Sourcepub fn font_display<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn font_display<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The font-display.
Sourcepub fn unicode_range<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn unicode_range<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The unicode-range.
Sourcepub fn platform_font_family<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn platform_font_family<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
The resolved platform font family
Sourcepub fn font_variation_axes<VALUE: Into<Vec<FontVariationAxis>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn font_variation_axes<VALUE: Into<Vec<FontVariationAxis>>>( &mut self, value: VALUE, ) -> &mut Self
Available variation settings (a.k.a. “axes”).
Trait Implementations§
Source§impl Clone for FontFaceBuilder
impl Clone for FontFaceBuilder
Source§fn clone(&self) -> FontFaceBuilder
fn clone(&self) -> FontFaceBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FontFaceBuilder
impl RefUnwindSafe for FontFaceBuilder
impl Send for FontFaceBuilder
impl Sync for FontFaceBuilder
impl Unpin for FontFaceBuilder
impl UnsafeUnpin for FontFaceBuilder
impl UnwindSafe for FontFaceBuilder
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