public class ControlFont
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
static boolean |
RENDER_2X
set the RENDER_2X variable to true to double render text, this makes the font look bolder
especially in OpenGL mode.
|
Constructor and Description |
---|
ControlFont(processing.core.PFont theFont) |
ControlFont(processing.core.PFont theFont,
int theFontSize) |
ControlFont(processing.core.PFont theFont,
int theFontSize,
int theLineHeight) |
Modifier and Type | Method and Description |
---|---|
void |
adjust(processing.core.PGraphics theGraphics,
Label theLabel) |
void |
draw(ControlP5 c,
Label theLabel) |
void |
draw(processing.core.PGraphics theGraphics,
Label theLabel) |
int |
getBaseline() |
int |
getBottom() |
int |
getCenter() |
processing.core.PFont |
getFont() |
int |
getHeight() |
int |
getOffset(int theIndex) |
int |
getOverflow() |
int |
getSize() |
int |
getTextHeight() |
int |
getTop() |
int |
getWidth() |
static int |
getWidthFor(java.lang.String theText,
Label theLabel,
processing.core.PGraphics theGraphics) |
void |
init(Label theLabel) |
static void |
normal()
sets the rendering of a PFont back to normal and single rendering.
|
void |
setSize(int theSize) |
static void |
sharp()
renders a PFont twice for better and sharper readability
|
public static boolean DEBUG
public static boolean RENDER_2X
public ControlFont(processing.core.PFont theFont)
public ControlFont(processing.core.PFont theFont, int theFontSize)
public ControlFont(processing.core.PFont theFont, int theFontSize, int theLineHeight)
public void adjust(processing.core.PGraphics theGraphics, Label theLabel)
public void draw(processing.core.PGraphics theGraphics, Label theLabel)
public int getBaseline()
public int getBottom()
public int getCenter()
public processing.core.PFont getFont()
public int getHeight()
public int getOffset(int theIndex)
public int getOverflow()
public int getSize()
public int getTextHeight()
public int getTop()
public int getWidth()
public static int getWidthFor(java.lang.String theText, Label theLabel, processing.core.PGraphics theGraphics)
public void init(Label theLabel)
public static void normal()
public void setSize(int theSize)
public static void sharp()
processing library controlP5 by Andreas Schlegel. (c) 2006-2015