Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Applet
« Previous
Next »
The implementation-specific properties like ascent, descent of a font object is implemented by
Options
- Font class
- Regular class
- FontMetrics class
- Graphics class
CORRECT ANSWER : FontMetrics class
Discussion Board
Java Applet
Good quality of questions. thanks......??
Ajay Kumar 12-18-2014 05:13 AM
TextFont
Text fonts in Java are represented by instances of the java.awt.Font class. A Font object is constructed from a font name, style identifier, and a point size. We can create a Font at any time, but it's meaningful only when applied to a particular component on a given display device. Here are a couple of fonts:
Font smallFont = new Font("Monospaced", Font.PLAIN, 10);
Font bigFont = new Font("Serif", Font.BOLD, 18);
The font name is a symbolic name for the font family. The following represents the assignments of ascent and descent:
int fontAscent = metrics.getMaxAscent ();
int fontDescent = metrics.getMaxDescent();
Rohit Sharma 09-30-2014 05:57 PM
APPLET
the implementation specific properties like ascent, descent of the of font object is implemented by ????????
sachin 09-28-2013 02:08 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲