APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.text

public final Enum FontSmoothingType

extends Enum<FontSmoothingType>
Class Inheritance

The FontSmoothingType enum is used to specify the preferred mechanism used to smooth the edges of fonts for on-screen text.
Since
JavaFX 2.1

Field Summary

Modifier and TypeField and Description
public static final FontSmoothingType
GRAY

Specifies the default gray scale smoothing, which is most suitable for graphics and animation uses.

public static final FontSmoothingType
LCD

Specifies sub-pixel LCD text, which utilises characteristics of digital LCD display panels to achieve increased pixel resolution.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FontSmoothingType
public static FontSmoothingType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

GRAYback to summary
public static final FontSmoothingType GRAY

Specifies the default gray scale smoothing, which is most suitable for graphics and animation uses.

LCDback to summary
public static final FontSmoothingType LCD

Specifies sub-pixel LCD text, which utilises characteristics of digital LCD display panels to achieve increased pixel resolution. This mode is generally appropriate where the important factor is legibility of static text, particularly at small sizes.

A request for LCD text is a 'hint', since the implementation may need to ignore it under conditions such as compositing modes which do not support it. It follow that where LCD text is important that the application should avoid use of effects, transparency etc.

Constructor Detail

FontSmoothingTypeback to summary
private FontSmoothingType()

Method Detail

valueOfback to summary
public static FontSmoothingType valueOf(String name)
valuesback to summary
public static FontSmoothingType[] values()