Sets the current font that will be drawn with the text() function. Fonts must be created for Processing with createFont() or loaded with loadFont() before they can be used. The font set through textFont() will be used in all subsequent calls to the text() function.
(PFont which)
| 4359 | * @see PGraphics#textSize(float) |
| 4360 | */ |
| 4361 | public void textFont(PFont which) { |
| 4362 | if (which == null) { |
| 4363 | throw new RuntimeException(ERROR_TEXTFONT_NULL_PFONT); |
| 4364 | } |
| 4365 | textFontImpl(which, which.getDefaultSize()); |
| 4366 | } |
| 4367 | |
| 4368 | |
| 4369 | /** |
no test coverage detected