multivalent.std

Class FontRender

public class FontRender extends Behavior

Deprecated: will vanish when it's fixed in Java 1.5.

Font rendering control: antialiasing and fractional metrics. Enforce on or off for particular media adaptor, or ask user in a menu. Ideally we'd want antialiasing and fractional metrics on everywhere always. However, Java's antialiasing is broken and it slows rendering performance. It's desperately needed for PDF and DVI, so selectively turn on.

Version: $Revision: 1.3 $ $Date: 2003/06/02 05:46:55 $

Field Summary
static StringATTR_AATITLE
Title string to use for antialiasing menu item.
static StringATTR_ANTIALIASING
static StringATTR_FRACTIONAL_METRICS
static StringMSG_ANTIALIAS
Toggle antialiasing.
static StringMSG_FRACTIONAL_METRICS
static StringVALUE_FORCE_OFF
static StringVALUE_FORCE_ON
static StringVALUE_UNSET
static StringVALUE_USER
Same effect as VALUE_USER_OFF.
static StringVALUE_USER_OFF
static StringVALUE_USER_ON
Method Summary
voidbuildBefore(Document doc)
booleanpaintAfter(Context cx, Node node)
booleanpaintBefore(Context cx, Node node)
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
booleansemanticEventAfter(SemanticEvent se, String msg)
booleansemanticEventBefore(SemanticEvent se, String msg)

Field Detail

ATTR_AATITLE

public static final String ATTR_AATITLE
Title string to use for antialiasing menu item.

ATTR_ANTIALIASING

public static final String ATTR_ANTIALIASING

ATTR_FRACTIONAL_METRICS

public static final String ATTR_FRACTIONAL_METRICS

MSG_ANTIALIAS

public static final String MSG_ANTIALIAS
Toggle antialiasing.

"antialias"

MSG_FRACTIONAL_METRICS

public static final String MSG_FRACTIONAL_METRICS

VALUE_FORCE_OFF

public static final String VALUE_FORCE_OFF

VALUE_FORCE_ON

public static final String VALUE_FORCE_ON

VALUE_UNSET

public static final String VALUE_UNSET

VALUE_USER

public static final String VALUE_USER
Same effect as VALUE_USER_OFF.

VALUE_USER_OFF

public static final String VALUE_USER_OFF

VALUE_USER_ON

public static final String VALUE_USER_ON

Method Detail

buildBefore

public void buildBefore(Document doc)

paintAfter

public boolean paintAfter(Context cx, Node node)

paintBefore

public boolean paintBefore(Context cx, Node node)

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)