FontType Structure
Represents one supportable font type

Namespace: GroupDocs.Editor.HtmlCss.Resources.Fonts
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 21.10.0.0
Syntax
public struct FontType : IResourceType

The FontType type exposes the following members.

Properties
  NameDescription
Public propertyCssName
Returns CSS-compatible name of this font type, which is used in the @font-face at-rule
Public propertyStatic memberEot
Represents a EOT (Embedded OpenType) font type
Public propertyFileExtension
Filename extension (without dot character) for this font type
Public propertyFontFormat
Font format for @font-face format
Public propertyFormalName
Returns a formal name of this font type
Public propertyMimeCode
MIME code of a particular font type
Public propertyStatic memberOtf
Represents a OTF (OpenType Font) font type
Public propertyStatic memberTtf
Represents a TTF (TrueType Font) font type
Public propertyStatic memberUndefined
Special value, which marks undefined, unknown or unsupported font resource
Public propertyStatic memberWoff
Represents a WOFF (Web Open Font Format) font type
Public propertyStatic memberWoff2
Represents a WOFF2 (Web Open Font Format version 2) font type
Methods
  NameDescription
Public methodEquals(Object)
Determines whether this instance is equal with specified uncasted object, which presumably is another "FontType" instance
(Overrides ValueTypeEquals(Object).)
Public methodEquals(FontType)
Determines whether this instance is equal with specified "FontType" instance
Public methodStatic memberGetFirstDefined
Returns a first font type from specified set, which is not an "Undefined" value, or "Undefined" font type otherwise (when all items are "Undefined")
Public methodGetHashCode
Returns a hash-code, which is a constant number for this specific value type
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberParseFromCssName
Returns FontType value, which is equivalent of specified CSS-compatible name of the font type
Public methodStatic memberParseFromFilenameWithExtension
Returns FontType value, which is equivalent of filename extension, which is extracted from specified filename
Public methodStatic memberParseFromMime
Returns FontType value, which is equivalent of specified MIME-code
Operators
  NameDescription
Public operatorStatic memberEquality
Checks whether two "FontType" values are equal
Public operatorStatic memberInequality
Checks whether two "FontType" values are not equal
See Also