pub enum StandardFont {
Show 14 variants
Helvetica,
HelveticaBold,
HelveticaOblique,
HelveticaBoldOblique,
TimesRoman,
TimesBold,
TimesItalic,
TimesBoldItalic,
Courier,
CourierBold,
CourierOblique,
CourierBoldOblique,
Symbol,
ZapfDingbats,
}Expand description
The 14 standard PDF fonts.
Variants§
Helvetica
HelveticaBold
HelveticaOblique
HelveticaBoldOblique
TimesRoman
TimesBold
TimesItalic
TimesBoldItalic
Courier
CourierBold
CourierOblique
CourierBoldOblique
Symbol
ZapfDingbats
Implementations§
Source§impl StandardFont
impl StandardFont
Sourcepub fn metrics(&self) -> StandardFontMetrics
pub fn metrics(&self) -> StandardFontMetrics
Get the metrics for this standard font.
Source§impl StandardFont
impl StandardFont
Sourcepub fn liberation_family(&self) -> Option<&'static str>
pub fn liberation_family(&self) -> Option<&'static str>
The Liberation family that is metric-compatible with this base-14 font, used for PDF/UA + PDF/A embedding (the base-14 fonts are not embeddable; Liberation is, and shares their metrics). Symbol and ZapfDingbats have no metric-compatible substitute.
Sourcepub fn descriptor_flags(&self) -> u32
pub fn descriptor_flags(&self) -> u32
PDF FontDescriptor /Flags for the metric-compatible substitute:
Nonsymbolic (32), plus Serif (2) or FixedPitch (1) as appropriate.
Trait Implementations§
Source§impl Clone for StandardFont
impl Clone 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 UnsafeUnpin 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