pub struct PlatformFontUsageBuilder { /* private fields */ }Expand description
Builder for PlatformFontUsage.
Implementations§
Source§impl PlatformFontUsageBuilder
impl PlatformFontUsageBuilder
Sourcepub fn family_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn family_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Font’s family name reported by platform.
Sourcepub fn post_script_name<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn post_script_name<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Font’s PostScript name reported by platform.
Sourcepub fn is_custom_font<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn is_custom_font<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Indicates if the font was downloaded or resolved locally.
Sourcepub fn glyph_count<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn glyph_count<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Amount of glyphs that were rendered with this font.
Sourcepub fn build(&self) -> Result<PlatformFontUsage, PlatformFontUsageBuilderError>
pub fn build(&self) -> Result<PlatformFontUsage, PlatformFontUsageBuilderError>
Trait Implementations§
Source§impl Clone for PlatformFontUsageBuilder
impl Clone for PlatformFontUsageBuilder
Source§fn clone(&self) -> PlatformFontUsageBuilder
fn clone(&self) -> PlatformFontUsageBuilder
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 PlatformFontUsageBuilder
impl RefUnwindSafe for PlatformFontUsageBuilder
impl Send for PlatformFontUsageBuilder
impl Sync for PlatformFontUsageBuilder
impl Unpin for PlatformFontUsageBuilder
impl UnsafeUnpin for PlatformFontUsageBuilder
impl UnwindSafe for PlatformFontUsageBuilder
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