public class FontStyle extends Object
Defines how the font should be styled with: a normal, italic, or oblique face from its font-family.
| Modifier and Type | Field and Description |
|---|---|
static FontStyle |
Italic
Selects a font that is classified as italic.
|
static FontStyle |
Normal
Selects a font that is classified as normal within a font-family.
|
static FontStyle |
Oblique
Selects a font that is classified as oblique.
|
| Constructor and Description |
|---|
FontStyle() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(FontStyle other)
Determines whether this font-style instance is equal to specified
|
boolean |
equals(Object obj)
Determines whether this font-style instance is equal to specified uncasted
|
String |
getValue()
Returns a value of this font style as a string
|
int |
hashCode()
Returns a hash-code for this instance
|
boolean |
isInitial()
Indicates whether this font-style has an initial value (Normal)
|
static boolean |
op_Equality(FontStyle first,
FontStyle second)
Checks whether two "FontStyle" values are equal
|
static boolean |
op_Inequality(FontStyle first,
FontStyle second)
Checks whether two "FontStyle" values are not equal
|
static boolean |
tryParse(String keyword,
FontStyle[] result)
Tries to recognize a specified keyword as a proper keyword value of the 'font-style' and return it on success or NULL on failure.
|
public static final FontStyle Italic
Selects a font that is classified as italic. If no italic version of the face is available, one classified as oblique is used instead. If neither is available, the style is artificially simulated.
public static final FontStyle Normal
Selects a font that is classified as normal within a font-family. Initial value.
public static final FontStyle Oblique
Selects a font that is classified as oblique. If no oblique version of the face is available, one classified as italic is used instead. If neither is available, the style is artificially simulated.
public final boolean equals(FontStyle other)
Determines whether this font-style instance is equal to specified
other - Other font-style instancepublic boolean equals(Object obj)
Determines whether this font-style instance is equal to specified uncasted
public final String getValue()
Returns a value of this font style as a string
public int hashCode()
Returns a hash-code for this instance
public final boolean isInitial()
Indicates whether this font-style has an initial value (Normal)
public static boolean op_Equality(FontStyle first, FontStyle second)
Checks whether two "FontStyle" values are equal
first - First value to checksecond - Second value to checkpublic static boolean op_Inequality(FontStyle first, FontStyle second)
Checks whether two "FontStyle" values are not equal
first - First value to checksecond - Second value to checkpublic static boolean tryParse(String keyword, FontStyle[] result)
Tries to recognize a specified keyword as a proper keyword value of the 'font-style' and return it on success or NULL on failure.
keyword - A keyword to parseresult - Result, of parsing was successful, or Normal otherwiseCopyright © 2024. All rights reserved.