MCPcopy Index your code
hub / github.com/benfry/processing4 / textAscent

Method textAscent

core/src/processing/core/PGraphics.java:4308–4313  ·  view source on GitHub ↗

Returns ascent of the current font at its current size. This information is useful for determining the height of the font above the baseline. @webref typography:metrics @webBrief Returns ascent of the current font at its current size @see PGraphics#textDescent()

()

Source from the content-addressed store, hash-verified

4306 * @see PGraphics#textDescent()
4307 */
4308 public float textAscent() {
4309 if (textFont == null) {
4310 defaultFontOrDeath("textAscent");
4311 }
4312 return textFont.ascent() * textSize;
4313 }
4314
4315
4316 /**

Callers 2

handleTextSizeMethod · 0.95
textMethod · 0.95

Calls 2

defaultFontOrDeathMethod · 0.95
ascentMethod · 0.80

Tested by

no test coverage detected