public static enum Font.DistanceFieldType extends java.lang.Enum<Font.DistanceFieldType>
| Enum Constant and Description |
|---|
MSDF
Used by Multi-channel Signed Distance Field fonts, which are harder to create but can be more crisp than SDF
fonts, with hard corners where the corners were hard in the original font.
|
SDF
Used by Signed Distance Field fonts that are compatible with
DistanceFieldFont, and may be created
by Hiero with its Distance Field effect. |
STANDARD
Used by normal fonts with no distance field effect.
|
| Modifier and Type | Method and Description |
|---|---|
static Font.DistanceFieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Font.DistanceFieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font.DistanceFieldType STANDARD
Font.setTextureFilter().public static final Font.DistanceFieldType SDF
DistanceFieldFont, and may be created
by Hiero with its Distance Field effect. You may want to set the Font.distanceFieldCrispness field to a
higher or lower value depending on the range used to create the font in Hiero; this can take experimentation.public static final Font.DistanceFieldType MSDF
Font.distanceFieldCrispness field to a higher or lower value based on preference.public static Font.DistanceFieldType[] values()
for (Font.DistanceFieldType c : Font.DistanceFieldType.values()) System.out.println(c);
public static Font.DistanceFieldType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null