WordProcessingSubstitutedFontInfo

WordProcessingSubstitutedFontInfo structure

Encapsulates metainfo and binary data of one font from WordProcessing document, which originally is not used in the loaded into the Viewer instance document, but serves as a substitution font for those, which cannot be found on the target machine. Substituted fonts exist only for the WordProcessing formats family.

public struct WordProcessingSubstitutedFontInfo : IFontInfo

Properties

Name Description
Content { get; } Content of this substituted font as a byte array. Never is null.
FamilyName { get; } Family name of the substituted font, without style, never is null or empty string
Format { get; } Format of this substituted (not original) font. May be TrueType, TrueType Collection, OpenType, Embedded OpenType. For the substituted font, because its binary content is available by definition, this property never returns an Unknown value.
OriginalFamilyName { get; } Family name of the original font, which cannot be found on a target machine, without style, never is null or empty string
Style { get; } Style of the original font — may be Regular, Bold, Italic, or Bold Italic. Substituted font is usually (but not always) of the same style.

Methods

Name Description
SerializeToCss(TextWriter) Serializes this font info as a @font-face at-rule and writes it to the specified text writer
override ToString() Returns a debug info about this font data as the next template: “original-name -> substituted-name style, format”

Remarks

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.

See Also