Struct pdf_writer::writers::Type0Font [−][src]
pub struct Type0Font<'a> { /* fields omitted */ }
Expand description
Writer for a Type-0 (composite) font dictionary. PDF 1.2+.
This struct is created by PdfWriter::type0_font
.
Implementations
Write the /BaseFont
attribute. This is the PostScript name of the
font. Required.
Write the /Encoding
attribute as a predefined encoding. Either this or
encoding_cmap
is required.
Write the /Encoding
attribute as a reference to a character map.
Either this or encoding_predefined
is
required.
Write the /DescendantFonts
attribute as a one-element array containing
a reference to a CidFont
. Required.
Write the /ToUnicode
attribute.
A suitable character map can be built with UnicodeCmap
.
Methods from Deref<Target = Dict<'a>>
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)
.