pub enum FontFamily {
Serif,
SansSerif,
Monospace,
}Expand description
Font family classification for width table selection.
Variants§
Serif
Times New Roman, Times, Georgia, etc.
SansSerif
Arial, Helvetica, Verdana, Myriad Pro, etc.
Monospace
Courier New, Courier, Consolas, etc.
Implementations§
Source§impl FontFamily
impl FontFamily
Sourcepub fn from_generic_family(gf: &str) -> Self
pub fn from_generic_family(gf: &str) -> Self
XFA Spec 3.3 §17 (p716) — Map genericFamily attribute to FontFamily.
Sourcepub fn from_typeface(name: &str) -> Self
pub fn from_typeface(name: &str) -> Self
Classify a typeface name into a font family.
Trait Implementations§
Source§impl Clone for FontFamily
impl Clone for FontFamily
Source§fn clone(&self) -> FontFamily
fn clone(&self) -> FontFamily
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 Debug for FontFamily
impl Debug for FontFamily
Source§impl Default for FontFamily
impl Default for FontFamily
Source§fn default() -> FontFamily
fn default() -> FontFamily
Returns the “default value” for a type. Read more
Source§impl PartialEq for FontFamily
impl PartialEq for FontFamily
Source§fn eq(&self, other: &FontFamily) -> bool
fn eq(&self, other: &FontFamily) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FontFamily
impl Eq for FontFamily
impl StructuralPartialEq for FontFamily
Auto Trait Implementations§
impl Freeze for FontFamily
impl RefUnwindSafe for FontFamily
impl Send for FontFamily
impl Sync for FontFamily
impl Unpin for FontFamily
impl UnsafeUnpin for FontFamily
impl UnwindSafe for FontFamily
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