Tries to recognize a specified keyword as a proper keyword value of the ‘font-style’ and return it on success or NULL on failure.
FontStyle()
public FontStyle()
Normal
public static final FontStyle Normal
Selects a font that is classified as normal within a font-family. Initial value.
Italic
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.
Oblique
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.
isInitial()
public final boolean isInitial()
Indicates whether this font-style has an initial value (Normal)
Returns:
boolean
getValue()
public final String getValue()
Returns a value of this font style as a string
Returns:
java.lang.String
equals(FontStyle other)
public final boolean equals(FontStyle other)
Determines whether this font-style instance is equal to specified