What are Font and FontMetrics classes?

What are Font and FontMetrics classes?..

Answer / ranganathkini

The Font class provides mappings to fonts that are used to
render text data onto the screen. The Font class maps the
characters of the language to their respecitve glyphs.

The FontMetrics provides access to attributes of Font
objects, things such as char width, char height, ascents,
line spacing, etc, all of which help in drawing the fonts on
the screen.

Is This Answer Correct ?    14 Yes 1 No

Post New Answer

More Core Java Interview Questions

What does compareto () do in java?

0 Answers  

Is there any tag in htm to upload and download files?

0 Answers  

When can an object reference be cast to an interface reference in java programming?

0 Answers  

Explain notifyall() method of object class ?

0 Answers  

What are keyboard events?

0 Answers  

What is meant by Encapsulation? Can you write a class to explain encapsulation?

8 Answers   Ness Technologies,

What is meant by anonymous class?

0 Answers  

How many types of constructors are used in java?

0 Answers  

What is the latest version of java?

0 Answers  

what are Checked & Unchecked exceptions ?

2 Answers  

What is aggregation?

1 Answers   Cap Gemini,

v-model life cycle

0 Answers   Virtusa,