Given a Graphics object g, the metric properties of the current font are obtained as follows: FontMetrics fm = g.getFontMetrics(); int ascent = fm.getAscent(); int descent = fm.getDescent(); int leading = fm.getLeading(); int height = fm.getHeight(); |