MCPcopy Index your code
hub / github.com/processing/processing / getDefaultSize

Method getDefaultSize

core/src/processing/core/PFont.java:553–556  ·  view source on GitHub ↗

Returns the size that will be used when textFont(font) is called. When drawing with 2x pixel density, bitmap fonts in OpenGL need to be created (behind the scenes) at double the requested size. This ensures that they're shown at half on displays (so folks don't have to change their sketch code).

()

Source from the content-addressed store, hash-verified

551 * their sketch code).
552 */
553 public int getDefaultSize() {
554 //return defaultSize;
555 return size / density;
556 }
557
558
559 public boolean isSmooth() {

Callers 1

textFontMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected