What are Font and FontMetrics classes?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is thread start?

518


How you can force the garbage collection?

535


What is java util collection?

556


Can constructor be inherited?

575


What is meant by data hiding/encapsulation?

570






Is java still necessary?

619


What is the default access specifier for variables and methods of a class?

566


I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

1593


What is an object in java?

553


Can a source file contain more than one class declaration?

510


Can a class be a super class and a sub-class at the same time? Give example.

796


What is the base class of all exception classes?

581


Difference between error and exception

5005


What are the advantages of defining packages in java?

504


What is the final class modifier?

555