The implementation-specific properties like ascent, descent of a font object is implemented by

- Font class
- Regular class
- FontMetrics class
- Graphics class

CORRECT ANSWER : FontMetrics class

Discussion Board
Java Applet

Good quality of questions. thanks......??

Ajay Kumar 12-18-2014 05:13 AM


Text fonts in Java are represented by instances of the java.awt.Font class. A Font object is constructed from a font name, style identifier, and a point size. We can create a Font at any time, but it's meaningful only when applied to a particular component on a given display device. Here are a couple of fonts:

Font smallFont = new Font("Monospaced", Font.PLAIN, 10);
Font bigFont = new Font("Serif", Font.BOLD, 18);

The font name is a symbolic name for the font family. The following represents the assignments of ascent and descent:

int fontAscent = metrics.getMaxAscent ();
int fontDescent = metrics.getMaxDescent();

Rohit Sharma 09-30-2014 05:57 PM


the implementation specific properties like ascent, descent of the of font object is implemented by ????????

sachin 09-28-2013 02:08 AM

Write your comments


Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)