/** * Returns the descent of the current font at the current size. * This is a method, rather than a variable inside the PGraphics object * because it requires calculation. */ public float textDescent() { if (textFont == null) { defaultFontOrDeath("textDescent"); } return textFont.descent() * textSize; }
/** * ( begin auto-generated from textDescent.xml ) * * Returns descent of the current font at its current size. This * information is useful for determining the height of the font below the * baseline. For example, adding the <b>textAscent()</b> and * <b>textDescent()</b> values will give you the total height of the line. * * ( end auto-generated ) * * @webref typography:metrics * @see PGraphics#textAscent() */ public float textDescent() { if (textFont == null) { defaultFontOrDeath("textDescent"); } return textFont.descent() * textSize; }