edu.neu.ccs.gui
Class Fonts

java.lang.Object
  extended byedu.neu.ccs.gui.Fonts

public class Fonts
extends Object

Class Fonts contains a static method that returns a hash set with all installed font family names and also some static methods that select a particular font name from each of the following categories: monospaced, serif, sanserif.

This class cannot be instantiated.

Version:
2.5.0

Constructor Summary
private Fonts()
          Prevent instantiation.
 
Method Summary
static QuickHashSet getFontFamilyNames()
          Returns a hash set that contains the available font family names for fonts installed on this system.
static String getMonospacedFontFamilyName()
          Returns the font family name of a monospaced font that is installed on this system.
static String getSansSerifFontFamilyName()
          Returns the font family name of a sans-serif font that is installed on this system.
static String getSerifFontFamilyName()
          Returns the font family name of a serif font that is installed on this system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fonts

private Fonts()
Prevent instantiation.

Method Detail

getFontFamilyNames

public static QuickHashSet getFontFamilyNames()

Returns a hash set that contains the available font family names for fonts installed on this system.


getMonospacedFontFamilyName

public static String getMonospacedFontFamilyName()

Returns the font family name of a monospaced font that is installed on this system.

Returns the same font family name as the method of the same name in ConsoleGateway.

The order of the names tested as of 2.5.0 is:

The first font name that is found is returned.


getSerifFontFamilyName

public static String getSerifFontFamilyName()

Returns the font family name of a serif font that is installed on this system.

The order of the names tested as of 2.5.0 is:

The first font name that is found is returned.


getSansSerifFontFamilyName

public static String getSansSerifFontFamilyName()

Returns the font family name of a sans-serif font that is installed on this system.

The order of the names tested as of 2.5.0 is:

The first font name that is found is returned.