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 |
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is the difference between state-based unit testing and interaction-based unit testing?
Define how objects are stored in java?
when should you use stringbuilder class in a program?
why java is platform independent?
Can java inner class be static?
How will you initialize an Applet?
what are the methods of an object class?
What is the difference between serial and throughput garbage collector?
What is serialversionuid?
Explain the difference between private, public, package and protected in java?
What is integer size in java?