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 meant by object?

607


What does flag mean in java?

570


What is formatted output in java?

543


What are the main concepts of oops in java?

635


What is the function of static in java?

581






What are the advantages of functions?

552


Is void a data type?

570


What is polymorphism in java? What are the kinds of polymorphism?

608


What is sorting algorithm in java?

561


How does singleton class work?

563


What is the advantage of preparedstatement over statement?

614


Which package has light weight components in java programming?

731


Explain access specifiers?

689


What is finally and finalize in java?

629


Is main a function?

547