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

Method textAscent

core/src/processing/core/PGraphics.java:4220–4225  ·  view source on GitHub ↗

( begin auto-generated from textAscent.xml ) Returns ascent of the current font at its current size. This information is useful for determining the height of the font above the baseline. For example, adding the textAscent() and textDescent() values will give you the total height of th

()

Source from the content-addressed store, hash-verified

4218 * @see PGraphics#textDescent()
4219 */
4220 public float textAscent() {
4221 if (textFont == null) {
4222 defaultFontOrDeath("textAscent");
4223 }
4224 return textFont.ascent() * textSize;
4225 }
4226
4227
4228 /**

Callers 2

handleTextSizeMethod · 0.95
textMethod · 0.95

Calls 2

defaultFontOrDeathMethod · 0.95
ascentMethod · 0.80

Tested by

no test coverage detected