I haven't used controlP5 yet.
I looked at
controlP5 : : Textlabel : : setFont ( ) and indeed the documentation here is a bit cryptic, referring to BitFontRenderer which can't be found on the current documentation...
Searching this one with Google gives only three references: the above reference page, somebody with this class in a stack trace on this forum, and the source itself!
Looking at the latter, I see that "BitFont" means bitmap font.
We have a constant defining the number of fonts to 4, various arrays relying on this number, and four hard-coded fonts:
standard58.gif
standard56.gif
synt24.gif
GrixelKyrou9.gif
(these are images).
In the jar I have (probably old), I see the first three fonts, two very small, one larger. Not the last one which might be in the latest versions.
All this to say:
- the parameter is an int because it refers to one of the built in fonts, so currently the number must be 0 to 3;
- you have no choice of font;
- well, actually you can use your own font: you must generate the corresponding bitmap file, change and recompile this class, and update the jar. Not super flexible, but possible.
I think sojamo should remove the reference to the BitFontRenderer in the public documentation and expand a bit more on what the parameter means.
Apparently you can use the following constants as font parameter:
ControlP5.standard58
ControlP5.standard56
ControlP5.synt24
ControlP5.grixel