WordProcessingFontInfo class
Leave feedback
On this page
Encapsulates metainfo and binary data of a font from a WordProcessing document loaded into a Viewer instance.
Immutable struct.
Its instances are produced and returned by the GroupDocs.Viewer public API and normally should not be created by the user.
For details, see the documentation: https://docs.groupdocs.com/viewer/net/getting-used-fonts/
The WordProcessingFontInfo type exposes the following members:
| Constructor | Description |
|---|---|
| init |
| 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 | |
| to_string | Returns a debug info about this font data as the next template: “name style, embedded/system, format”. |
| Property | Description |
|---|---|
| alt_family_name | The alternative family name of the font. If missing, then an empty string. |
| charset | The character set of this font. |
| content | The content of this font as a byte array. If only metainfo about this font is available and the binary content is unavailable, the property returns None. |
| family_name | The family name of the font, without style; never None or empty string. |
| format | The format of this font. |
| is_embedded | The property indicates whether this font is embedded inside the document, loaded into the Viewer instance (True), or it is a system font (False). |
| style | The style of the font — may be Regular, Bold, Italic, or Bold Italic. |
- 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.