PresentationFontInfo
Contents
[
Hide
]
PresentationFontInfo structure
Encapsulates metainfo and binary data of one font from the Presentation 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 PresentationFontInfo : IFontInfo
Properties
Name | Description |
---|---|
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 ). Spreadsheet documents cannot hold embedded fonts, so for them this property always returns 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 |
See Also
- interface IFontInfo
- namespace GroupDocs.Viewer.Fonts
- assembly GroupDocs.Viewer