Enum pdf_canvas::BuiltinFont[][src]

pub enum BuiltinFont {
    Courier,
    Courier_Bold,
    Courier_Oblique,
    Courier_BoldOblique,
    Helvetica,
    Helvetica_Bold,
    Helvetica_Oblique,
    Helvetica_BoldOblique,
    Times_Roman,
    Times_Bold,
    Times_Italic,
    Times_BoldItalic,
    Symbol,
    ZapfDingbats,
}

The "Base14" built-in fonts in PDF. Underscores in these names are hyphens in the real names.

Variants

Trait Implementations

impl Debug for BuiltinFont
[src]

Formats the value using the given formatter. Read more

impl PartialEq for BuiltinFont
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BuiltinFont
[src]

impl Hash for BuiltinFont
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for BuiltinFont
[src]

impl Clone for BuiltinFont
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FontSource for BuiltinFont
[src]

Write the object(s) for this font to a pdf file. Read more

Get the PDF name of this font. Read more

The encoding is WinAnsiEncoding for all builtin fonts except Symbol, for which it is SymbolEncoding, and ZapfDingbats, which uses ZapfDingbatsEncoding.

Get the width of a string in this font at given size. Read more

Get the width of a string in thousands of unit of text space. This unit is what is used in some places internally in pdf files. Read more

Get the font metrics for font.

Auto Trait Implementations

impl Send for BuiltinFont

impl Sync for BuiltinFont