controlP5
Class BitFontRenderer
java.lang.Object
controlP5.BitFontRenderer
public class BitFontRenderer
- extends java.lang.Object
The bitfontRenderer is used to draw any text labels used by controlP5 by
default. The bitfontRenderer is based on a per pixel technique and is not
using processing's PFont renderer. To use PFonts within controlP5, take a
look at ControlFont
- See Also:
ControlFont
Method Summary |
int |
addBitFont(processing.core.PImage theImage)
TODO implement addBitFont |
int |
getWidth(Label theLabel)
|
int |
getWidth(java.lang.String theText,
Label theLabel)
get the width of a text line based on used bit font. |
int |
write(Label theLabel)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
standard58
public static final int standard58
- See Also:
- Constant Field Values
standard56
public static final int standard56
- See Also:
- Constant Field Values
synt24
public static final int synt24
- See Also:
- Constant Field Values
grixel
public static final int grixel
- See Also:
- Constant Field Values
isInit
public static boolean isInit
BitFontRenderer
public BitFontRenderer()
addBitFont
public int addBitFont(processing.core.PImage theImage)
- TODO implement addBitFont
- Parameters:
theImage
-
- Returns:
getWidth
public int getWidth(Label theLabel)
getWidth
public int getWidth(java.lang.String theText,
Label theLabel)
- get the width of a text line based on used bit font.
- Parameters:
theText
- theFontIndex
-
- Returns:
write
public int write(Label theLabel)
processing library controlP5 by Andreas Schlegel. (c) 2010