SpreadsheetFontInfo class

SpreadsheetFontInfo class

Encapsulates metainfo and binary data of a font from a spreadsheet document loaded into a Viewer instance. Spreadsheet documents cannot have embedded fonts, so a font returned by Viewer.get_all_fonts is installed in the operating system where the viewer runs.

The SpreadsheetFontInfo type exposes the following members:

Constructors

Constructor Description
init

Methods

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

Properties

Property Description
charset The character set of this font.
color The color of this font.
content The content of this font as a byte array. If only metainfo about this font is available and its binary content is unavailable, the property returns None.
family_name The family name of the font, without style, never is null or empty string.
format The format of this font.
is_strikeout The font has a single strikeout.
is_underline The font has an underline.
style The style of this font — may be Regular, Bold, Italic, or Bold Italic.

See Also