IFontInfo class

IFontInfo class

Represents a common interface for all fonts that can be extracted from all supported families of document formats: PDF, WordProcessing, Spreadsheet, and Presentation.

The IFontInfo type exposes the following members:

Methods

Method Description
serialize_to_css Serializes this font info as a @font-face at-rule and writes it to the specified text writer.
serialize_to_css_text_writer

Properties

Property Description
content The binary content of the font as a byte array, if available, or None if not.
family_name The family name of the font as a string.
format The format of this font as an enum — TrueType, TrueType Collection, OpenType, Embedded OpenType, or FontFormat.unknown.
style The style of the font as an enum (Regular, Bold, Italic, or Bold Italic); some document formats may support only FontStyles.regular.

See Also