public enum FontFamily extends Enum<FontFamily>
| Enum Constant and Description |
|---|
AMATIC_SC |
ARIAL |
CAVEAT |
COMFORTAA |
COMIC_SANS_MS |
COURIER_NEW |
EB_GARAMOND |
GEORGIA |
IMPACT |
LOBSTER |
LORA |
MERRIWEATHER |
MONTSERRAT |
NUNITO |
OSWALD |
PACIFICO |
PLAYFAIR_DISPLAY |
ROBOTO |
ROBOTO_MONO |
SPECTRAL |
TIMES_NEW_ROMAN |
TREBUCHET_MS |
UNSPECIFIED |
VERDANA |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets font family name.
|
static FontFamily |
getValue(String name)
Gets corresponding FontFamily by given font name.
|
static FontFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontFamily UNSPECIFIED
public static final FontFamily AMATIC_SC
public static final FontFamily ARIAL
public static final FontFamily CAVEAT
public static final FontFamily COMFORTAA
public static final FontFamily COMIC_SANS_MS
public static final FontFamily COURIER_NEW
public static final FontFamily EB_GARAMOND
public static final FontFamily GEORGIA
public static final FontFamily IMPACT
public static final FontFamily LOBSTER
public static final FontFamily LORA
public static final FontFamily MERRIWEATHER
public static final FontFamily MONTSERRAT
public static final FontFamily NUNITO
public static final FontFamily OSWALD
public static final FontFamily PACIFICO
public static final FontFamily PLAYFAIR_DISPLAY
public static final FontFamily ROBOTO
public static final FontFamily ROBOTO_MONO
public static final FontFamily SPECTRAL
public static final FontFamily TIMES_NEW_ROMAN
public static final FontFamily TREBUCHET_MS
public static final FontFamily VERDANA
public static FontFamily[] values()
for (FontFamily c : FontFamily.values()) System.out.println(c);
public static FontFamily valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
public static FontFamily getValue(String name)
name - the name of font.Copyright © 2022. All rights reserved.