org.freedesktop.cairo

Class HintStyle

public class HintStyle extends Enum

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.freedesktop.cairo.HintStyle. As this package was never correctly implemented in java-gnome 2.x, any new code written will likely have a considerably different public API.

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

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Use the default hint style for for font backend and target device

FULL

public static final HintStyle FULL

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Hint outlines to maximize contrast

MEDIUM

public static final HintStyle MEDIUM

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Hint outlines with medium strength giving a compromise between fidelity to the original shapes and contrast

NONE

public static final HintStyle NONE

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Do not hint outlines

SLIGHT

public static final HintStyle SLIGHT

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

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)