public final class UESFont
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
private static float | 
DEFAULT_FONT_SIZE
Default font size specified by UES Style Guide. 
 | 
private static java.lang.String[] | 
SANS_SERIF_FONT_NAMES
Names of sans-serif fonts specified by UES Style Guide. 
 | 
private static java.awt.Font | 
sansSerif
Instance of sans-serif font according to USE Style Guide which is available on the current platform. 
 | 
| Modifier | Constructor and Description | 
|---|---|
private  | 
UESFont()
Creates a new instance of UESFont. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
private static java.util.Map<java.lang.String,java.awt.Font> | 
getAvailableFonts()
Returns all fonts available for the current JVM. 
 | 
static java.awt.Font | 
getDefault()
Returns default font according to UES Style Guide. 
 | 
private static java.awt.Font | 
getProperlySizedFont(java.awt.Font f)
Returns a font derived from the given font. 
 | 
static java.awt.Font | 
getSansSerif()
Returns a sans-serif font according to UES Style Guide. 
 | 
This method implements an algorithm to find the appropriate font available on the current platform, because not all fonts specified in UES Style Guide are available everywhere.
f - The font to derive.null if f is null; otherwise the derived font.GraphicsEnvironment.getAllFonts()