CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.gui
Class Fonts

java.lang.Object
  extended by ch.randelshofer.gui.Fonts

public class Fonts
extends java.lang.Object

Fonts.

Version:
1.1.1 2007-06-07 Fixed small dialog font tag.
1.1 2004-04-04 Changed font settings to provide better fonts on Mac OS X and on Windows.
1.0 March 19, 2003 Created.
Author:
Werner Randelshofer, Hausmatt 10, CH-6405 Immensee, Switzerland

Method Summary
static java.lang.String dialogFontTag(java.lang.String text)
          Puts an HTML font tag for the Dialog Font around the specified text.
static java.lang.String emphasizedDialogFontTag(java.lang.String text)
          Puts an HTML font tag for the Emphasized Dialog Font around the specified text.
static java.awt.Font getApplicationFont()
          If your application creates text documents, use the application font as the default for user-created content.
static java.awt.Font getDialogFont()
          The dialog font is used for text in menus, modeless dialogs, and titles of document windows.
static java.awt.Font getEmphasizedDialogFont()
          Use emphasized dialog fonts sparingly.
static java.awt.Font getEmphasizedSmallDialogFont()
          You might use emphasized small dialog font to title a group of settings that appear without a group box, or for brief informative text below a text field.
static java.awt.Font getLabelFont()
          The label font is used for labels with controls such as sliders and icon bevel buttons.
static java.awt.Font getMiniDialogFont()
          If necessary, the mini dialog font can be used for utility window labels and text.
static java.awt.Font getMonospaceFont()
          If your application needs monospaced fonts, use the monospace font.
static java.awt.Font getSmallDialogFont()
          The small dialog font is used for informative text in alerts.
static java.lang.String smallDialogFontTag(java.lang.String text)
          Puts an HTML font tag for the Small Dialog Font around the specified text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDialogFont

public static java.awt.Font getDialogFont()
The dialog font is used for text in menus, modeless dialogs, and titles of document windows.


getEmphasizedDialogFont

public static java.awt.Font getEmphasizedDialogFont()
Use emphasized dialog fonts sparingly. Emphasized (bold) dialog font is used in only two places in the interface: the application name in an About window and the message text in an option pane.


getSmallDialogFont

public static java.awt.Font getSmallDialogFont()
The small dialog font is used for informative text in alerts. It is also the default font for headings in lists, for help tags, and for text in the small versions of many controls. You can also use it to provide additional information about settings in various windows.


getEmphasizedSmallDialogFont

public static java.awt.Font getEmphasizedSmallDialogFont()
You might use emphasized small dialog font to title a group of settings that appear without a group box, or for brief informative text below a text field.


getApplicationFont

public static java.awt.Font getApplicationFont()
If your application creates text documents, use the application font as the default for user-created content.


getMonospaceFont

public static java.awt.Font getMonospaceFont()
If your application needs monospaced fonts, use the monospace font.


getLabelFont

public static java.awt.Font getLabelFont()
The label font is used for labels with controls such as sliders and icon bevel buttons. You should rarely need to use this font in dialogs, but may find it useful in utility windows when space is at a premium.


getMiniDialogFont

public static java.awt.Font getMiniDialogFont()
If necessary, the mini dialog font can be used for utility window labels and text.


dialogFontTag

public static java.lang.String dialogFontTag(java.lang.String text)
Puts an HTML font tag for the Dialog Font around the specified text.


smallDialogFontTag

public static java.lang.String smallDialogFontTag(java.lang.String text)
Puts an HTML font tag for the Small Dialog Font around the specified text.


emphasizedDialogFontTag

public static java.lang.String emphasizedDialogFontTag(java.lang.String text)
Puts an HTML font tag for the Emphasized Dialog Font around the specified text.


(c) Werner Randelshofer.
All rights reserved.