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 can you set the applet size?

0 Answers  


Why string is not thread safe?

0 Answers  


Explain the difference between the public, private, final, protected, and default modifiers?

0 Answers  


Can we override private method in java?

0 Answers  


whats the difference between == and .equal ?

10 Answers   Cisco,






Can we pass null as argument in java?

0 Answers  


Why can't we make a class private in java?

0 Answers  


What is sizeof () operator?

0 Answers  


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

0 Answers  


what is platform native code

2 Answers   i3 Solutions,


What are heterogeneous objects?

0 Answers  


What is difference between hashset and hashmap in java?

0 Answers  


Categories