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 is an example of a conditional statement?

0 Answers  


What is a Java package and how is it used?

2 Answers  


Is alive in java?

0 Answers  


What is purpose of applet programming?

0 Answers  


When do you create an index?

0 Answers  






Can java arraylist hold different types?

0 Answers  


What is Applet Stub Interface ?

0 Answers  


Is 'null' a keyword?

8 Answers  


Does treeset use compareto?

0 Answers  


What are the differences between processes and threads?

0 Answers  


What does this () mean in java?

0 Answers  


What is java autoboxing?

0 Answers  


Categories