public class FontType extends com.aspose.ms.lang.Struct<FontType> implements com.aspose.ms.System.IEquatable<FontType>, IResourceType
Represents one supportable font type
Constructor and Description |
---|
FontType() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(FontType other)
Determines whether this instance is equal with specified "FontType" instance
|
boolean |
equals(Object obj)
Determines whether this instance is equal with specified uncasted object, which presumably is another "FontType" instance
|
String |
getCssName()
Returns CSS-compatible name of this font type, which is used in the @font-face at-rule
|
static FontType |
getEot()
Represents a EOT (Embedded OpenType) font type
|
String |
getFileExtension()
Filename extension (without dot character) for this font type
|
static FontType |
getFirstDefined(FontType... fonts)
Returns a first font type from specified set, which is not an "Undefined" value, or "Undefined" font type otherwise (when all items are "Undefined")
|
String |
getFontFormat()
Font format for @font-face format
|
String |
getFormalName()
Returns a formal name of this font type
|
String |
getMimeCode()
MIME code of a particular font type
|
static FontType |
getTtf()
Represents a TTF (TrueType Font) font type
|
static FontType |
getUndefined()
Special value, which marks undefined, unknown or unsupported font resource
|
static FontType |
getWoff()
Represents a WOFF (Web Open Font Format) font type
|
static FontType |
getWoff2()
Represents a WOFF2 (Web Open Font Format version 2) font type
|
int |
hashCode()
Returns a hash-code, which is a constant number for this specific value type
|
static boolean |
op_Equality(FontType first,
FontType second)
Checks whether two "FontType" values are equal
|
static boolean |
op_Inequality(FontType first,
FontType second)
Checks whether two "FontType" values are not equal
|
static FontType |
parseFromCssName(String name)
Returns FontType value, which is equivalent of specified CSS-compatible name of the font type
|
static FontType |
parseFromFilenameWithExtension(String filename)
Returns FontType value, which is equivalent of filename extension, which is extracted from specified filename
|
static FontType |
parseFromMime(String mimeCode)
Returns FontType value, which is equivalent of specified MIME code
|
public boolean equals(FontType other)
Determines whether this instance is equal with specified "FontType" instance
other
- FontTypepublic boolean equals(Object obj)
Determines whether this instance is equal with specified uncasted object, which presumably is another "FontType" instance
public String getCssName()
Returns CSS-compatible name of this font type, which is used in the @font-face at-rule
public static FontType getEot()
Represents a EOT (Embedded OpenType) font type
public String getFileExtension()
Filename extension (without dot character) for this font type
getFileExtension
in interface IResourceType
public static FontType getFirstDefined(FontType... fonts)
Returns a first font type from specified set, which is not an "Undefined" value, or "Undefined" font type otherwise (when all items are "Undefined")
fonts
- public String getFontFormat()
Font format for @font-face format
public String getFormalName()
Returns a formal name of this font type
getFormalName
in interface IResourceType
public String getMimeCode()
MIME code of a particular font type
getMimeCode
in interface IResourceType
public static FontType getTtf()
Represents a TTF (TrueType Font) font type
public static FontType getUndefined()
Special value, which marks undefined, unknown or unsupported font resource
public static FontType getWoff()
Represents a WOFF (Web Open Font Format) font type
public static FontType getWoff2()
Represents a WOFF2 (Web Open Font Format version 2) font type
public int hashCode()
Returns a hash-code, which is a constant number for this specific value type
public static boolean op_Equality(FontType first, FontType second)
Checks whether two "FontType" values are equal
first
- second
- public static boolean op_Inequality(FontType first, FontType second)
Checks whether two "FontType" values are not equal
first
- second
- public static FontType parseFromCssName(String name)
Returns FontType value, which is equivalent of specified CSS-compatible name of the font type
name
- Format name of the font typepublic static FontType parseFromFilenameWithExtension(String filename)
Returns FontType value, which is equivalent of filename extension, which is extracted from specified filename
filename
- Filename extension (without dot character)Copyright © 2018. All rights reserved.