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

Method getDefaultSize

core/src/processing/core/PFont.java:560–563  ·  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

558 * their sketch code).
559 */
560 public int getDefaultSize() {
561 //return defaultSize;
562 return size / density;
563 }
564
565
566 public boolean isSmooth() {

Callers 1

textFontMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected