float (Graphics g) { if (myDescent >= 0) { return myDescent; } FontRenderContext fontRenderContext = ((Graphics2D) g).getFontRenderContext(); LineMetrics lineMetrics = myPlainFont.getLineMetrics(DEFAULT_MEASURE_HEIGHT_TEXT, fontRenderContext); myDescent = lineMetrics.getDescent(); return myDescent; }