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 |
How can you set the applet size?
Why string is not thread safe?
Explain the difference between the public, private, final, protected, and default modifiers?
Can we override private method in java?
whats the difference between == and .equal ?
Can we pass null as argument in java?
Why can't we make a class private in java?
What is sizeof () operator?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
what is platform native code
What are heterogeneous objects?
What is difference between hashset and hashmap in java?