org.freedesktop.cairo

Class HintMetrics

public class HintMetrics 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.HintMetrics. 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 whether to hint font metrics; hinting font metrics means quantizing them so that they are integer values in device space. Doing this improves the consistency of letter and line spacing, however it also means that text will be laid out differently at different zoom factors.
Field Summary
static HintMetricsDEFAULT
Hint metrics in the default manner for the font backend and target device
static HintMetricsOFF
Do not hint font metrics
static HintMetricsON
Hint font metrics
Method Summary
static HintMetricsintern(int value)
booleantest(HintMetrics other)

Field Detail

DEFAULT

public static final HintMetrics 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.

Hint metrics in the default manner for the font backend and target device

OFF

public static final HintMetrics OFF

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 font metrics

ON

public static final HintMetrics ON

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 font metrics

Method Detail

intern

public static HintMetrics intern(int value)

test

public boolean test(HintMetrics other)