controlP5
Class ControlFont

java.lang.Object
  extended by controlP5.ControlFont

public class ControlFont
extends java.lang.Object

ControlFont is a container for a PFont that can be used for customizing the font of a label. Fonts other than the pixel fonts provided by ControlP5 can for now only be used for TextLabels and Controller Labels. Textarea and Textfield are not supported.

Author:
andreas

Constructor Summary
ControlFont(processing.core.PFont theFont)
           
ControlFont(processing.core.PFont theFont, int theFontSize)
          create a controlFont and pass a reference to a PFont.
 
Method Summary
 processing.core.PFont getPFont()
           
 boolean isSmooth()
          Deprecated.  
 void setSize(int theSize)
           
 void setSmooth(boolean theFlag)
          Deprecated.  
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlFont

public ControlFont(processing.core.PFont theFont,
                   int theFontSize)
create a controlFont and pass a reference to a PFont. fontsize needs to be defined as second parameter.

Parameters:
theFont -
theFontSize -

ControlFont

public ControlFont(processing.core.PFont theFont)
Method Detail

setSmooth

public void setSmooth(boolean theFlag)
Deprecated. 

Parameters:
theFlag -

isSmooth

public boolean isSmooth()
Deprecated. 

Returns:

getPFont

public processing.core.PFont getPFont()

size

public int size()

setSize

public void setSize(int theSize)


processing library controlP5 by Andreas Schlegel. (c) 2010