You can retrieve the font name by calling getFontName . To determine which font faces are available on the system, you can call GraphicsEnvironment.getAllFonts . You can access information about a Font through the getAttributes method. A Font 's attributes include its name, size, transform, and font features such as weight and posture. This distance represents the typical height of capital letters, but some characters might extend above the ascender line.
Descent is the distance from the baseline to the descender line.
The lowest point of most characters will fall within the descent, but some characters might extend below the descender line. Leading is the recommended distance from the bottom of the descender line to the top of the next line. This information is used to properly position characters along a line, and to position lines relative to one another. You can access these line metrics through the getAscent , getDescent , and getLeading methods. You can als o access information about a Font 's height, baseline, and underline and strikethrough characteristics through LineMetrics .