pub struct PlatformFontUsage<'a> { /* private fields */ }Expand description
Information about amount of glyphs that were rendered with given font.
Implementations§
Source§impl<'a> PlatformFontUsage<'a>
impl<'a> PlatformFontUsage<'a>
Sourcepub fn builder(
family_name: impl Into<Cow<'a, str>>,
post_script_name: impl Into<Cow<'a, str>>,
is_custom_font: bool,
glyph_count: f64,
) -> PlatformFontUsageBuilder<'a>
pub fn builder( family_name: impl Into<Cow<'a, str>>, post_script_name: impl Into<Cow<'a, str>>, is_custom_font: bool, glyph_count: f64, ) -> PlatformFontUsageBuilder<'a>
Creates a builder for this type with the required parameters:
family_name: Font’s family name reported by platform.post_script_name: Font’s PostScript name reported by platform.is_custom_font: Indicates if the font was downloaded or resolved locally.glyph_count: Amount of glyphs that were rendered with this font.
Sourcepub fn family_name(&self) -> &str
pub fn family_name(&self) -> &str
Font’s family name reported by platform.
Sourcepub fn post_script_name(&self) -> &str
pub fn post_script_name(&self) -> &str
Font’s PostScript name reported by platform.
Sourcepub fn is_custom_font(&self) -> bool
pub fn is_custom_font(&self) -> bool
Indicates if the font was downloaded or resolved locally.
Sourcepub fn glyph_count(&self) -> f64
pub fn glyph_count(&self) -> f64
Amount of glyphs that were rendered with this font.
Trait Implementations§
Source§impl<'a> Clone for PlatformFontUsage<'a>
impl<'a> Clone for PlatformFontUsage<'a>
Source§fn clone(&self) -> PlatformFontUsage<'a>
fn clone(&self) -> PlatformFontUsage<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PlatformFontUsage<'a>
impl<'a> Debug for PlatformFontUsage<'a>
Source§impl<'a> Default for PlatformFontUsage<'a>
impl<'a> Default for PlatformFontUsage<'a>
Source§fn default() -> PlatformFontUsage<'a>
fn default() -> PlatformFontUsage<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for PlatformFontUsage<'a>
impl<'de, 'a> Deserialize<'de> for PlatformFontUsage<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for PlatformFontUsage<'a>
impl<'a> RefUnwindSafe for PlatformFontUsage<'a>
impl<'a> Send for PlatformFontUsage<'a>
impl<'a> Sync for PlatformFontUsage<'a>
impl<'a> Unpin for PlatformFontUsage<'a>
impl<'a> UnsafeUnpin for PlatformFontUsage<'a>
impl<'a> UnwindSafe for PlatformFontUsage<'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