Struct pdf_writer::writers::CidFont[][src]

pub struct CidFont<'a> { /* fields omitted */ }
Expand description

Writer for a CID font dictionary. PDF 1.2+.

This struct is created by PdfWriter::cid_font.

Implementations

Write the /Subtype attribute. Required.

Write the /BaseFont attribute. Required.

Write the /CIDSystemInfo dictionary. Required.

Write the /FontDescriptor attribute. Required.

Write the /DW attribute, specifying the default glyph width.

Start writing the /W (widths) array.

Write the /CIDToGIDMap attribute as a predefined name.

Write the /CIDToGIDMap attribute as a reference to a stream, whose bytes directly map from CIDs to glyph indices.

Methods from Deref<Target = Dict<'a>>

The number of written pairs.

Start writing a pair with an arbitrary value.

Write a pair with a primitive value.

This is a shorthand for dict.insert(key).primitive(value).

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Start writing the object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.