charva.awt

Class Font


public class Font
extends java.lang.Object

The Font class in the CHARVA package exists for "compatibility" with AWT; the only useful information it holds is whether the style is BOLD or not.

Field Summary

static int
BOLD
static int
ITALIC
static int
PLAIN

Constructor Summary

Font(String name_, int style_, int size_)

Method Summary

String
getFontName()
Returns the name of this font.
int
getStyle()
Returns the style of this font.

Field Details

BOLD

public static final int BOLD
Field Value:
1

ITALIC

public static final int ITALIC
Field Value:
2

PLAIN

public static final int PLAIN
Field Value:
0

Constructor Details

Font

public Font(String name_,
            int style_,
            int size_)

Method Details

getFontName

public String getFontName()
Returns the name of this font.

getStyle

public int getStyle()
Returns the style of this font.