FontType

FontType structure

Rappresenta un tipo di carattere supportato

public struct FontType : IEquatable<FontType>, IResourceType

Proprietà

Nome Descrizione
static Eot { get; } Rappresenta un tipo di carattere EOT (Embedded OpenType)
static Otf { get; } Rappresenta un tipo di carattere OTF (OpenType Font)
static Ttf { get; } Rappresenta un tipo di carattere TTF (TrueType Font)
static Undefined { get; } Valore speciale, che contrassegna la risorsa font non definita, sconosciuta o non supportata
static Woff { get; } Rappresenta un tipo di carattere WOFF (Web Open Font Format)
static Woff2 { get; } Rappresenta un tipo di carattere WOFF2 (Web Open Font Format versione 2)
CssName { get; } Restituisce il nome compatibile con CSS di questo tipo di carattere, utilizzato in @font-face at-rule
FileExtension { get; } Estensione del nome file (senza carattere punto) per questo tipo di font
FontFormat { get; } Formato carattere per @font-face format
FormalName { get; } Restituisce un nome formale di questo font type
MimeCode { get; } Codice MIME di un particolare tipo di font

Metodi

Nome Descrizione
static GetFirstDefined(params FontType[]) Restituisce un primo tipo di carattere dal set specificato, che non è un valore “Non definito” o altrimenti un tipo di carattere “Non definito” (quando tutti gli elementi sono “Non definito”)
static ParseFromCssName(string) Restituisce il valore FontType, che è equivalente al nome compatibile con CSS specificato del font type
static ParseFromFilenameWithExtension(string) Restituisce il valore FontType, che è equivalente all’estensione del nome file, che viene estratta dal nome file specificato
static ParseFromMime(string) Restituisce il valore FontType, che è equivalente al codice MIME specificato
Equals(FontType) Determina se questa istanza è uguale a “FontType” specificato instance
override Equals(object) Determina se questa istanza è uguale all’oggetto non cast specificato, che presumibilmente è un’altra istanza “FontType”
override GetHashCode() Restituisce un codice hash, che è un numero costante per questo valore specifico type
operator == Controlla se due valori “FontType” sono uguali
operator != Controlla se due valori “FontType” non sono uguali

Guarda anche