Struct pdf_writer::writers::FontDescriptor [−][src]
pub struct FontDescriptor<'a> { /* fields omitted */ }
Expand description
Writer for a font descriptor dictionary.
This struct is created by PdfWriter::font_descriptor
.
Implementations
Write the /FontFamily
attribute. Recommended for Type 3 fonts in
Tagged PDFs. PDF 1.5+.
Write the /FontStretch
attribute. Recommended for Type 3 fonts in
Tagged PDFs. PDF 1.5+.
Write the /FontWeight
attribute. Should be between 100 (lightest) and
900 (heaviest), 400 is normal weight, 700 is bold. Recommended
for Type 3 fonts in Tagged PDFs. PDF 1.5+.
Write the /FontBBox
attribute. Required, except for Type 3 fonts.
Write the /ItalicAngle
attribute. Required.
Write the /CapHeight
attribute. Required for fonts with Latin
characters, except for Type 3 fonts.
Write the /StemV
attribute. Required, except for Type 3 fonts.
Write the /MissingWidth
attribute.
Write the /FontFile
attribute, referecing Type 1 font data.
Write the /FontFile2
attribute, referencing TrueType font data. PDF
1.1+.
Write the /FontFile3
attribute, referencing CFF font data. PDF 1.2+ or
PDF 1.3+ for CID-keyed fonts.
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)
.