pub enum StandardFont {
Show 14 variants
Helvetica,
HelveticaBold,
HelveticaOblique,
HelveticaBoldOblique,
Courier,
CourierBold,
CourierOblique,
CourierBoldOblique,
TimesRoman,
TimesBold,
TimesItalic,
TimesBoldItalic,
ZapfDingBats,
Symbol,
}Expand description
The 14 standard fonts of PDF.
Variants§
Helvetica
Helvetica.
HelveticaBold
Helvetica Bold.
HelveticaOblique
Helvetica Oblique.
HelveticaBoldOblique
Helvetica Bold Oblique.
Courier
Courier.
CourierBold
Courier Bold.
CourierOblique
Courier Oblique.
CourierBoldOblique
Courier Bold Oblique.
TimesRoman
Times Roman.
TimesBold
Times Bold.
TimesItalic
Times Italic.
TimesBoldItalic
Times Bold Italic.
ZapfDingBats
Zapf Dingbats - a decorative symbol font.
Symbol
Symbol - a mathematical symbol font.
Implementations§
Source§impl StandardFont
impl StandardFont
Sourcepub fn postscript_name(&self) -> &'static str
pub fn postscript_name(&self) -> &'static str
Return the postscrit name of the font.
Sourcepub fn get_font_data(&self) -> (FontData, u32)
pub fn get_font_data(&self) -> (FontData, u32)
Return suitable font data for the given standard font.
Currently, this will return the corresponding Foxit font, which is a set of permissibly licensed fonts that is also very light-weight.
You can use the result of this method in your implementation of FontResolverFn.
Trait Implementations§
Source§impl Clone for StandardFont
impl Clone for StandardFont
Source§fn clone(&self) -> StandardFont
fn clone(&self) -> StandardFont
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 Debug for StandardFont
impl Debug for StandardFont
impl Copy for StandardFont
Auto Trait Implementations§
impl Freeze for StandardFont
impl RefUnwindSafe for StandardFont
impl Send for StandardFont
impl Sync for StandardFont
impl Unpin for StandardFont
impl UnwindSafe for StandardFont
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