public class RUFonts
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RUFonts.RBFont
This stub font class is responsible for returning the appropriate font reference by a rib font tag.
|
Constructor and Description |
---|
RUFonts() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getFamilyNames()
Returns a list of all system family names.
|
static java.awt.Font |
getFont(java.lang.String aName,
float aSize)
Returns a Font for a given name and size.
|
static java.lang.String |
getFontNameNormalized(java.lang.String aName)
Returns a "cleaned up" or standardized version of the given font name:
1.
|
static java.lang.String[] |
getFontNames()
Returns a list of all system fontnames (excludes any that don't start with capital A-Z).
|
static java.lang.String[] |
getFontNames(java.lang.String aFamilyName)
Returns a list of all font names for a given family name.
|
static java.awt.Font[] |
getFonts()
Returns the array of system fonts.
|
static java.awt.Font |
guessFont(java.lang.String aName)
Returns the system font with the most similar name to the given name.
|
static void |
startFontLoadingInBackground()
Starts loading fonts in the background and returns.
|
public static java.awt.Font getFont(java.lang.String aName, float aSize)
public static java.awt.Font[] getFonts()
public static java.lang.String[] getFontNames()
public static java.lang.String[] getFamilyNames()
public static java.lang.String[] getFontNames(java.lang.String aFamilyName)
public static java.awt.Font guessFont(java.lang.String aName)
public static java.lang.String getFontNameNormalized(java.lang.String aName)
public static void startFontLoadingInBackground()