/** * Sets the current font. The font's size will be the "natural" * size of this font (the size that was set when using "Create Font"). * The leading will also be reset. */ public void textFont(PFont which) { if (which == null) { throw new RuntimeException(ERROR_TEXTFONT_NULL_PFONT); } textFontImpl(which, which.getDefaultSize()); }
throw new RuntimeException(ERROR_TEXTFONT_NULL_PFONT); textFontImpl(which, which.getDefaultSize());