public class RMFont
extends Font
Modifier and Type | Field and Description |
---|---|
static RMFont |
Helvetica10 |
static RMFont |
Helvetica12 |
static RMFont |
Helvetica14 |
Constructor and Description |
---|
RMFont()
Creates a new font (Arial 10).
|
RMFont(java.lang.String aName,
double aSize)
Returns the font for the given name and size.
|
Modifier and Type | Method and Description |
---|---|
RMFont |
deriveFont(double aSize)
Returns a font with the same family as the receiver but with the given size.
|
static RMFont |
get(Font aFont)
Returns an RMFont.
|
RMFont |
getBold()
Returns the bold version of this font.
|
static RMFont |
getDefaultFont()
Returns the user's default font.
|
static RMFont |
getFont(java.lang.String aName,
double aSize)
Returns the font for the given name and size (substitutes Arial if not found).
|
RMFont |
getItalic()
Returns the italic version of this font.
|
RMFont |
scaleFont(double aScale)
Returns a font with the same family as the receiver but with size adjusted by given scale factor.
|
public static RMFont Helvetica10
public static RMFont Helvetica12
public static RMFont Helvetica14
public RMFont()
public RMFont(java.lang.String aName, double aSize)
public static RMFont getFont(java.lang.String aName, double aSize)
public static RMFont getDefaultFont()
public RMFont getBold()
public RMFont getItalic()
public RMFont deriveFont(double aSize)
public RMFont scaleFont(double aScale)
public static RMFont get(Font aFont)