public class FontUtils extends Object
getDefaultXXXX( )
methods in order to maintain a consistent look and feel.
For small font sizes (exactly 8 point), getSilkscreenXXXX( )
is also a
good option.The default Glimpse font is Verdana, a highly hinted font which is highly readable even at small sizes. However, Verdana cannot be distributed with Glimpse due to licensing restrictions. If Verdana cannot be found on a system, then an error message is printed and Bitstream Vera Sans is used.
Constructor and Description |
---|
FontUtils() |
Modifier and Type | Method and Description |
---|---|
static Font |
getBitstreamVeraSansBold(float size) |
static Font |
getBitstreamVeraSansBoldItalic(float size) |
static Font |
getBitstreamVeraSansItalic(float size) |
static Font |
getBitstreamVeraSansPlain(float size) |
static Font |
getDefaultBold(float size) |
static Font |
getDefaultBoldItalic(float size) |
static Font |
getDefaultItalic(float size) |
static Font |
getDefaultPlain(float size) |
static Font |
getSilkscreen()
Pixel-level designed font value at 8pt.
|
static Font |
getSilkscreenBold() |
static Font |
getSilkscreenBoldItalic() |
static Font |
getSilkscreenItalic() |
static Font |
getSilkscreenPlain() |
static Font |
getVerdanaBold(float size) |
static Font |
getVerdanaBoldItalic(float size) |
static Font |
getVerdanaItalic(float size) |
static Font |
getVerdanaPlain(float size) |
static Font |
loadTrueTypeFont(String filename,
float size,
int style) |
public static Font getDefaultPlain(float size)
public static Font getDefaultBold(float size)
public static Font getDefaultItalic(float size)
public static Font getDefaultBoldItalic(float size)
public static Font getBitstreamVeraSansPlain(float size)
public static Font getBitstreamVeraSansBold(float size)
public static Font getBitstreamVeraSansItalic(float size)
public static Font getBitstreamVeraSansBoldItalic(float size)
public static Font getSilkscreen()
public static Font getSilkscreenPlain()
public static Font getSilkscreenBold()
public static Font getSilkscreenItalic()
public static Font getSilkscreenBoldItalic()
public static Font getVerdanaPlain(float size)
public static Font getVerdanaBold(float size)
public static Font getVerdanaItalic(float size)
public static Font getVerdanaBoldItalic(float size)
Copyright © 2013 Metron, Inc.. All rights reserved.