WordProcessingSubstitutedFontInfo class

WordProcessingSubstitutedFontInfo class

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:

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
to_string Returns a debug string containing font information in the format “original-name -> substituted-name style, format”.

Properties

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.

See Also