jaron.pde
Class Fonts

java.lang.Object
  extended by jaron.pde.Fonts

public class Fonts
extends java.lang.Object

The Fonts class is a helper class for the Processing Development Environment (PDE) font handling. Its methods are all accessed in a static way.

Since:
1.0
Version:
1.2
Author:
jarontec gmail com

Field Summary
static int FONT_SIZE
          The standard font size.
static int LINE_HEIGHT
          The height of a single line of text.
static int LINE_SPACING
          The spacing between lines of text.
 
Constructor Summary
Fonts()
           
 
Method Summary
static processing.core.PFont getFontBold(processing.core.PApplet applet)
          Returns a PFont object of the bold font style.
static processing.core.PFont getFontPlain(processing.core.PApplet applet)
          Returns a PFont object of the normal font style.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FONT_SIZE

public static final int FONT_SIZE
The standard font size.

See Also:
Constant Field Values

LINE_SPACING

public static final int LINE_SPACING
The spacing between lines of text.

See Also:
Constant Field Values

LINE_HEIGHT

public static final int LINE_HEIGHT
The height of a single line of text. Its value is the result of the font size plus the line spacing.

See Also:
Constant Field Values
Constructor Detail

Fonts

public Fonts()
Method Detail

getFontBold

public static processing.core.PFont getFontBold(processing.core.PApplet applet)
Returns a PFont object of the bold font style.

Parameters:
applet - a reference to the the PDE applet
Returns:
a PFont object

getFontPlain

public static processing.core.PFont getFontPlain(processing.core.PApplet applet)
Returns a PFont object of the normal font style.

Parameters:
applet - a reference to the the PDE applet
Returns:
a PFont object