IFontInfo class
Leave feedback
On this page
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:
| 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 |
| 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. |
- module
groupdocs.viewer.fonts
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.