MCPcopy Create free account
hub / github.com/benfry/processing4 / textFont

Method textFont

core/src/processing/core/PGraphics.java:4361–4366  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 3

reapplySettingsMethod · 0.95
styleMethod · 0.95
defaultFontOrDeathMethod · 0.95

Calls 3

textFontImplMethod · 0.95
getDefaultSizeMethod · 0.80
printlnMethod · 0.45

Tested by

no test coverage detected