org.freedesktop.cairo

Class HintStyle

public class HintStyle extends Enum

Specifies the type of hinting to do on font outlines. Hinting is the process of fitting outlines to the pixel grid in order to improve the appearance of the result. Since hinting outlines involves distorting them, it also reduces the faithfulness to the original outline shapes. Not all of the outline hinting styles are supported by all font backends.
Field Summary
static HintStyleDEFAULT
Use the default hint style for for font backend and target device
static HintStyleFULL
Hint outlines to maximize contrast
static HintStyleMEDIUM
Hint outlines with medium strength giving a compromise between fidelity to the original shapes and contrast
static HintStyleNONE
Do not hint outlines
static HintStyleSLIGHT
Hint outlines slightly to improve contrast while retaining good fidelity to the original shapes.
Method Summary
static HintStyleintern(int value)
booleantest(HintStyle other)

Field Detail

DEFAULT

public static final HintStyle DEFAULT
Use the default hint style for for font backend and target device

FULL

public static final HintStyle FULL
Hint outlines to maximize contrast

MEDIUM

public static final HintStyle MEDIUM
Hint outlines with medium strength giving a compromise between fidelity to the original shapes and contrast

NONE

public static final HintStyle NONE
Do not hint outlines

SLIGHT

public static final HintStyle SLIGHT
Hint outlines slightly to improve contrast while retaining good fidelity to the original shapes.

Method Detail

intern

public static HintStyle intern(int value)

test

public boolean test(HintStyle other)