Returns a number - integer value between 1 and 1000, inclusive, which describes the boldness of the font, or throws an exception, if current boldness is not absolute, but relative
Indicates whether this font-weight instance stores a relative value of the weight (boldness) of the font - compared to the boldness of the parent element
Tries to parse a specified string and return a valid FontWeight instance on success
FontWeight()
public FontWeight()
Lighter
public static final FontWeight Lighter
One relative font weight lighter than the parent element
Bolder
public static final FontWeight Bolder
One relative font weight heavier than the parent element
Normal
public static final FontWeight Normal
Normal font weight. Same as 400.
Bold
public static final FontWeight Bold
Bold font weight. Same as 700.
isInitial()
public final boolean isInitial()
Indicates whether this font-size has an initial value (Medium)
Returns:
boolean
getNumber()
public final int getNumber()
Returns a number - integer value between 1 and 1000, inclusive, which describes the boldness of the font, or throws an exception, if current boldness is not absolute, but relative
Returns:
int
isAbsolute()
public final boolean isAbsolute()
Indicates whether this font-weight instance stores an absolute value of the weight (boldness) of the font, as an integer number
Returns:
boolean
isRelative()
public final boolean isRelative()
Indicates whether this font-weight instance stores a relative value of the weight (boldness) of the font - compared to the boldness of the parent element
Returns:
boolean
getValue()
public final String getValue()
Returns a value of this font-weight as a string
Returns:
java.lang.String
equals(FontWeight other)
public final boolean equals(FontWeight other)
Determines whether specified FontWeight instances are equal