controlP5
Class ControlFont
java.lang.Object
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,
int theFontSize)
create a controlFont and pass a reference to
a PFont. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
setSmooth
public void setSmooth(boolean theFlag)
isSmooth
public boolean isSmooth()
getPFont
public processing.core.PFont getPFont()
size
public int size()
setSize
public void setSize(int theSize)
processing library controlP5 by Andreas Schlegel. (c) 2010