( begin auto-generated from textFont.xml ) Sets the current font that will be drawn with the text() function. Fonts must be loaded with loadFont() before it can be used. This font will be used in all subsequent calls to the text() function. If no size parameter is input,
(PFont which)
| 4276 | * @see PGraphics#textSize(float) |
| 4277 | */ |
| 4278 | public void textFont(PFont which) { |
| 4279 | if (which == null) { |
| 4280 | throw new RuntimeException(ERROR_TEXTFONT_NULL_PFONT); |
| 4281 | } |
| 4282 | textFontImpl(which, which.getDefaultSize()); |
| 4283 | } |
| 4284 | |
| 4285 | |
| 4286 | /** |
no test coverage detected