public final class GralFont
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
fontImpl
The font-instance for the implementation can be set from the implementation with the necessary type
to minimize the effort in dynamic instances.
|
static java.lang.String |
fontMonospacedSansSerif |
static java.lang.String |
fontMonospacedSerif |
static java.lang.String |
fontMonospacedSmall |
java.lang.String |
fontName |
private static java.util.Map<java.lang.String,GralFont> |
fonts |
static java.lang.String |
fontSansSerif |
static java.lang.String |
fontSerif |
int |
size
The size of the font in points.
|
char |
style
The style of the font.
|
static char |
styleBold |
static char |
styleBoldItalic |
static char |
styleItalic |
static char |
styleNormal |
static char |
typeMonospaced
Some types of fonts.
|
static char |
typeSansSerif
Some types of fonts.
|
static char |
typeSerif
Some types of fonts.
|
static char |
typeSmallMonospaced
Some types of fonts.
|
static int |
version
Version, history and license.
|
Constructor and Description |
---|
GralFont(java.lang.String fontName,
int size,
char style) |
Modifier and Type | Method and Description |
---|---|
static GralFont |
getFont(char cFontName,
int size)
Get a standard font in a simple way.
|
static GralFont |
getFont(java.lang.String fontName,
int size,
char style)
Not yet ready.
|
public static final int version
public java.lang.Object fontImpl
public static final java.lang.String fontMonospacedSansSerif
public static final java.lang.String fontMonospacedSmall
public static final java.lang.String fontMonospacedSerif
public static final java.lang.String fontSansSerif
public static final java.lang.String fontSerif
public static final char typeSmallMonospaced
public static final char typeMonospaced
public static final char typeSansSerif
public static final char typeSerif
public static final char styleNormal
public static final char styleItalic
public static final char styleBoldItalic
public static final char styleBold
public java.lang.String fontName
public int size
public char style
private static java.util.Map<java.lang.String,GralFont> fonts
public static GralFont getFont(java.lang.String fontName, int size, char style)
fontName
- size
- Use the grid size!style
- public static GralFont getFont(char cFontName, int size)
cFontName
- "m" monospaced "c" monospaced small "n" normal text (Arial), "b" bold "i" italicsize
- absolute size, TODO should be related to GUI size.