pub struct FontQuery<'a> {
pub name: &'a str,
pub family: Option<&'a str>,
pub bold: bool,
pub italic: bool,
pub serif: bool,
pub fixed: bool,
pub symbolic: bool,
pub text: bool,
pub lang: Option<&'a str>,
}Expand description
a font a page uses but does not embed
Fields§
§name: &'a strits PostScript name without a subset tag (Helvetica-Bold, ArialMT, …)
family: Option<&'a str>§bold: bool§italic: bool§serif: boolserifs, a fixed pitch, a symbol font (by the descriptor’s flags)
fixed: bool§symbolic: bool§text: boola simple font (one byte per code), not a composite one
lang: Option<&'a str>a composite font of one of Adobe’s CJK collections: the language of its text (zh-Hans, zh-Hant, ja, ko), so a substitute has its characters (in its forms)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for FontQuery<'a>
impl<'a> Freeze for FontQuery<'a>
impl<'a> Move for FontQuery<'a>
impl<'a> RefUnwindSafe for FontQuery<'a>
impl<'a> Send for FontQuery<'a>
impl<'a> Sync for FontQuery<'a>
impl<'a> Unpin for FontQuery<'a>
impl<'a> UnsafeUnpin for FontQuery<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for FontQuery<'a>where
&'a str: UnwindSafe,
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