Struct pdf_writer::writers::Type3Font [−][src]
pub struct Type3Font<'a> { /* fields omitted */ }
Expand description
Writer for a Type-3 font dictionary.
This struct is created by PdfWriter::type3_font
.
Implementations
Write the /Name
attribute, which is the name of the font in the
current resource dictionary. Required in PDF 1.0, discouraged in PDF
1.1+.
Write the /FontMatrix
attribute, which defines the mapping from glyph
space to text space. Required.
Write the /Encoding
attribute as a predefined encoding. Either this or
encoding_custom
is required.
Start writing an /Encoding
dictionary. Either this or
encoding_predefined
is required.
Write the FirstChar
attribute, defining the first character code in
the font’s widths array. Required.
Write the LastChar
attribute, defining the last character code in the
font’s widths array. Required.
Write the /Widths
array. Should be of length last - first + 1
.
Required.
Write the /FontDescriptor
attribute. Required in Tagged PDFs.
Write the /ToUnicode
attribute. PDF 1.2+.
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)
.