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

Why is java architectural neutral?

0 Answers  


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

0 Answers  


What is the difference between a public and a non-public class?

2 Answers  


What are the types of exceptions?

0 Answers  


What is the difference between ArrayList and Vector? which one is better in Java

0 Answers   SkillGun Technologies,






What is the difference between super class & sub class?

0 Answers  


What are scalar data types?

0 Answers  


What is a website container?

0 Answers  


what is the replacement for GOTO in java?

2 Answers   CTS,


what is multithreading?

5 Answers   Virtusa,


different types of threads?

18 Answers   TCS,


What is casting ?

2 Answers  


Categories