pub enum PdfFontBuiltin {
Show 14 variants
TimesRoman,
TimesBold,
TimesItalic,
TimesBoldItalic,
Helvetica,
HelveticaBold,
HelveticaOblique,
HelveticaBoldOblique,
Courier,
CourierBold,
CourierOblique,
CourierBoldOblique,
Symbol,
ZapfDingbats,
}Expand description
The 14 built-in fonts provided as part of the PDF specification.
Variants§
TimesRoman
TimesBold
TimesItalic
TimesBoldItalic
Helvetica
HelveticaBold
HelveticaOblique
HelveticaBoldOblique
Courier
CourierBold
CourierOblique
CourierBoldOblique
Symbol
ZapfDingbats
Implementations§
Source§impl PdfFontBuiltin
impl PdfFontBuiltin
Sourcepub fn to_pdf_font_name(&self) -> &str
pub fn to_pdf_font_name(&self) -> &str
Returns the PostScript name of this built-in PDF font, as listed on page 416 of the PDF 1.7 specification.
Trait Implementations§
Source§impl Clone for PdfFontBuiltin
impl Clone for PdfFontBuiltin
Source§fn clone(&self) -> PdfFontBuiltin
fn clone(&self) -> PdfFontBuiltin
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 PdfFontBuiltin
impl Debug for PdfFontBuiltin
Source§impl PartialEq for PdfFontBuiltin
impl PartialEq for PdfFontBuiltin
impl Copy for PdfFontBuiltin
impl StructuralPartialEq for PdfFontBuiltin
Auto Trait Implementations§
impl Freeze for PdfFontBuiltin
impl RefUnwindSafe for PdfFontBuiltin
impl Send for PdfFontBuiltin
impl Sync for PdfFontBuiltin
impl Unpin for PdfFontBuiltin
impl UnwindSafe for PdfFontBuiltin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more