VTypes - Release 1
Class org.violetlib.types.FontDescription
Deprecated: ShowHide
-
-
|
Modifier and Type |
Static Method and Description |
|
create |
Create a font description for a font that is not oblique.
public static FontDescription create(String family,
float weight,
float size)
throws IllegalArgumentException
-
Create a font description for a font that is not oblique.
- Parameters:
family - The name of the font family.weight - The font weight, where 0 is regular. See the associated constants.size - The font size, in points.
- Throws:
IllegalArgumentException - if {code weight} or size are invalid.
|
|
create |
static FontDescription create(String family,
float weight,
float size,
boolean isOblique)
Create a font description.
public static FontDescription create(String family,
float weight,
float size,
boolean isOblique)
throws IllegalArgumentException
-
Create a font description.
- Parameters:
family - The name of the font family.weight - The font weight, where 0 is regular. See the associated constants.size - The font size, in points.isOblique - True if the font posture is oblique.
- Throws:
IllegalArgumentException - if {code weight} or size are invalid.
|
|
isValidSize |
static boolean isValidSize(float size)
public static boolean isValidSize(float size)
|
|
isValidWeight |
static boolean isValidWeight(float weight)
public static boolean isValidWeight(float weight)
|
-
-
getClass, notify, notifyAll, wait, wait, wait