public enum FontFamilyFallback extends Enum<FontFamilyFallback>
Genesis forces you to specify a fallback when setting the font-family property with a builder, in case all other font families are not available. It must be specified first in the Java code, because Java does not allow vararg parameters to precede other parameters. In the CSS code, the fallback ends the list.
Enum Constant and Description |
---|
CURSIVE
Glyphs in cursive fonts generally have either joining strokes or other
cursive characteristics beyond those of italic typefaces.
|
FANTASY
Fantasy fonts are primarily decorative fonts that contain playful
representations of characters.
|
MONOSPACE
All glyphs have the same fixed width.
|
SANS_SERIF
Glyphs have stroke endings that are plain.
|
SERIF
Glyphs have finishing strokes, flared or tapering ends, or have actual
serifed endings.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static FontFamilyFallback |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontFamilyFallback[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontFamilyFallback SERIF
public static final FontFamilyFallback SANS_SERIF
public static final FontFamilyFallback CURSIVE
public static final FontFamilyFallback FANTASY
public static final FontFamilyFallback MONOSPACE
public static FontFamilyFallback[] values()
for (FontFamilyFallback c : FontFamilyFallback.values()) System.out.println(c);
public static FontFamilyFallback 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 toString()
toString
in class Enum<FontFamilyFallback>
Copyright © 2013. All Rights Reserved.