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 /FontName attribute. Required.

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 /Flags attribute. Required.

Write the /FontBBox attribute. Required, except for Type 3 fonts.

Write the /ItalicAngle attribute. Required.

Write the /Ascent attribute. Required.

Write the /Descent attribute. Required.

Write the /Leading attribute.

Write the /CapHeight attribute. Required for fonts with Latin characters, except for Type 3 fonts.

Write the /XHeight attribute.

Write the /StemV attribute. Required, except for Type 3 fonts.

Write the /StemH attribute.

Write the /AvgWidth attribute.

Write the /MaxWidth attribute.

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.

Write the /CharSet attribute, encoding the character names of a font subset as a string. This is only relevant for Type 1 fonts. PDF 1.1+.

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.