Enum pdfium_render::font::PdfFontBuiltin
source · 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 copy 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<PdfFontBuiltin> for PdfFontBuiltin
impl PartialEq<PdfFontBuiltin> for PdfFontBuiltin
source§fn eq(&self, other: &PdfFontBuiltin) -> bool
fn eq(&self, other: &PdfFontBuiltin) -> bool
This method tests for
self and other values to be equal, and is used
by ==.