Woff2Font Class
Represents one font in the WOFF2 (Web Open Font Format) format
Inheritance Hierarchy

Namespace: GroupDocs.Editor.HtmlCss.Resources.Fonts
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 21.10.0.0
Syntax
public sealed class Woff2Font : FontResourceBase

The Woff2Font type exposes the following members.

Constructors
  NameDescription
Public methodWoff2Font(String, Stream)
Creates new Woff2Font class from content, represented as byte stream, and with specified name
Public methodWoff2Font(String, String)
Creates new Woff2Font class from content, represented as base64-encoded string, and with specified name
Properties
  NameDescription
Public propertyByteContent
Returns content of this font as byte stream
(Inherited from FontResourceBase.)
Public propertyFilenameWithExtension
Returns correct filename of this font resource, which consists of name and extension. Theoretically can differ from the name.
(Inherited from FontResourceBase.)
Public propertyIsDisposed
Determines whether this font is disposed or not
(Inherited from FontResourceBase.)
Public propertyName
Returns name of this font resource. Usually doesn't contain filename extension and theoretically can differ from filename.
(Inherited from FontResourceBase.)
Public propertyTextContent
Returns content of this font as base64-encoded string. This value is cached after first invoke.
(Inherited from FontResourceBase.)
Public propertyType
Returns FontType.Woff2
(Overrides FontResourceBaseType.)
Methods
  NameDescription
Public methodDispose
Disposes this font resource, disposing its content and making most methods and properties non-working
(Inherited from FontResourceBase.)
Public methodEquals(FontResourceBase)
Checks this instance with specified font resource on reference equality
(Inherited from FontResourceBase.)
Public methodEquals(IHtmlResource)
Checks this instance with specified HTML resource on reference equality
(Inherited from FontResourceBase.)
Public methodStatic memberIsValid(Stream)
Checks whether specified stream is a valid WOFF2 font
Public methodStatic memberIsValid(String)
Checks whether specified base64-encoded string is a valid WOFF2 font
Public methodSave
Saves this font to the specified file
(Inherited from FontResourceBase.)
Events
  NameDescription
Public eventDisposed
Event, which occurs when this font is disposed
(Inherited from FontResourceBase.)
Fields
  NameDescription
Public fieldStatic memberRequiredHeaderSize
WOFF2 header size (in bytes), which is required for its validation
See Also