pub struct FontNaming<'a> {
pub family: Option<&'a str>,
pub subfamily: Option<&'a str>,
pub manufacturer: Option<&'a str>,
pub designer: Option<&'a str>,
pub designer_url: Option<&'a str>,
pub copyright_notice: Option<&'a str>,
pub license: Option<&'a str>,
pub license_url: Option<&'a str>,
/* private fields */
}Expand description
OpenType font naming information extracted from the name table.
Fields§
§family: Option<&'a str>Family name, e.g. “Fira Mono”.
subfamily: Option<&'a str>Subfamily name, e.g. “Regular”.
manufacturer: Option<&'a str>Font manufacturer.
designer: Option<&'a str>Font designer.
designer_url: Option<&'a str>URL of the font designer.
copyright_notice: Option<&'a str>Copyright notice.
license: Option<&'a str>Font license.
license_url: Option<&'a str>Font license URL.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for FontNaming<'a>
impl<'a> Clone for FontNaming<'a>
Source§fn clone(&self) -> FontNaming<'a>
fn clone(&self) -> FontNaming<'a>
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 moreSource§impl<'a> Debug for FontNaming<'a>
impl<'a> Debug for FontNaming<'a>
Source§impl<'a> Default for FontNaming<'a>
impl<'a> Default for FontNaming<'a>
Source§fn default() -> FontNaming<'a>
fn default() -> FontNaming<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for FontNaming<'a>
Auto Trait Implementations§
impl<'a> Freeze for FontNaming<'a>
impl<'a> RefUnwindSafe for FontNaming<'a>
impl<'a> Send for FontNaming<'a>
impl<'a> Sync for FontNaming<'a>
impl<'a> Unpin for FontNaming<'a>
impl<'a> UnwindSafe for FontNaming<'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