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()
()
| 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 | /** |
no test coverage detected