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

How listener identify that the event came from a particular object?

0 Answers  


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

0 Answers  


Is java hard to learn?

0 Answers  


Which class represents the socket that both the client and server use to communicate with each other?

0 Answers  


write a progam hashmap & hashtable?

2 Answers   IBM,


Explain naming conventions for packages?

0 Answers  


What is "Java Native Interface" and how to use it?

1 Answers   IBM,


What is Hierarchy of exception?

0 Answers   Amdocs,


What is composition in java?

0 Answers  


What are the types of strings?

0 Answers  


What is the difference between state-based unit testing and interaction-based unit testing?

0 Answers  


What are the differences between heap and stack memory?

0 Answers  


Categories