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 method overloading and method overriding?

538


What is parsing a string?

592


What is the difference between synchronized and synchronized block?

504


what is the difference between future and callable interface in java?

605


What is the difference between @before and @beforeclass annotation?

540






What is the difference between serial and throughput garbage collector?

585


Can we overload run() method in java?

599


What is the full name of java?

571


How to make a write-only class in java?

579


What is the new line character?

558


What is difference between length and length() method in java ?

562


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2241


What are heap memory and stack memory and what are memory tables.

512


Is string a wrapper class?

519


How do you create a first line indent?

508