public class Fonts extends Object
Modifier and Type | Method and Description |
---|---|
static Font |
get(String name,
int size,
int style)
Returns the given font.
|
static Font |
system()
Returns the default font for this system.
|
static Font |
systemBold()
Returns the default bold font for this system.
|
static Font |
systemLarge()
Returns a largish system font appropriate for dialog headers.
|
static Font |
systemMonospace()
Returns a monospace font for this system.
|
static FontData |
systemMonospaceFontData()
Calculates the best monospaced font available on this system, can be called from any thread.
|
public static Font system()
public static Font systemBold()
public static Font systemLarge()
public static Font systemMonospace()
public static FontData systemMonospaceFontData()