WordProcessingFontInfo
Contents
[
Hide
]
WordProcessingFontInfo structure
Encapsulates metainfo and binary data of one font from the WordProcessing document, loaded into the Viewer
instance. This font is used in the document content and is embedded inside the document itself or is installed in the operating system, where the GroupDocs.Viewer is running.
public struct WordProcessingFontInfo : IFontInfo
Properties
Name | Description |
---|---|
AltFamilyName { get; } | Alternative family name of the font. If missing, then empty string. |
Charset { get; } | Character set of this font |
Content { get; } | Content of this font as a byte array. If there is only metainfo about this font, but its binary content is unavailable, this property returns null . |
FamilyName { get; } | Family name of the font, without style, never is null or empty string |
Format { get; } | Format of this font. Documents may use fonts in the next formats: TrueType, TrueType Collection, OpenType, Embedded OpenType. If there is only metainfo about this font, but its binary content is unavailable, this property returns an Unknown value. |
IsEmbedded { get; } | Indicates whether this font is embedded inside the document, loaded into the Viewer instance (true ), or it is a system font (false ). |
Style { get; } | Style of the font — may be Regular, Bold, Italic, or Bold Italic. |
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: “name style, embedded/system, 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
- interface IFontInfo
- namespace GroupDocs.Viewer.Fonts
- assembly GroupDocs.Viewer