Thursday, February 12, 2009

What is the difference between the ‘Font’ and ‘FontMetrics’ class

Question :What is the difference between the ‘Font’ and ‘FontMetrics’ class?
Answer :The Font Class is used to render ‘glyphs’ - the characters you see on the screen. FontMetrics encapsulates information about a specific font on a specific Graphics object. (width of the characters, ascent, descent)

No comments: