WordProcessingSubstitutedFontInfo class
Leave feedback
On this page
Encapsulates metainfo and binary data of one font from a WordProcessing document, which originally is not used in the loaded Viewer instance document, but serves as a substitution font for those that cannot be found on the target machine. Substituted fonts exist only for the WordProcessing formats family.
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 WordProcessingSubstitutedFontInfo 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 string containing font information in the format “original-name -> substituted-name style, format”. |
| Property | Description |
|---|---|
| content | The content of the substituted font as a byte array. It is never None. |
| family_name | The family name of the substituted font, without style. |
| format | The format of this substituted (not original) font. |
| original_family_name | The family name of the original font, which cannot be found on a target machine, without style. Never is null or empty string. |
| style | The style of the original 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.