COMPUTER SCIENCE AND ENGINEERING
COMPUTER GRAPHICS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
plain only
|
|
plain and bold only
|
|
plain, bold, and italic only
|
|
plain, bold, italic, and bold+italic
|
Detailed explanation-1: -There are four styles for displaying fonts in Java: plain, bold, italic, and bold italic. The BOLD constant represents a boldface font. The ITALIC constant represents an italic font.
Detailed explanation-2: -Applications that require specific fonts can bundle them and instantiate them using the createFont method. Logical fonts are the five font families defined by the Java platform which must be supported by any Java runtime environment: Serif, SansSerif, Monospaced, Dialog, and DialogInput.
Detailed explanation-3: -To make a text bold create a font bypassing FontWeight. BOLD or, FontWeight. EXTRA BOLD as the value of the parameter weight and, to make a text italic pass FontPosture. ITALIC as the value of the parameter posture.
Detailed explanation-4: -Bold, Italic, Regular are known as font styles. A bold font-weight has the same style as a regular font, with thicker letters. An italic font is a left-to-right slanted version of your typeface’s regular font a bold italic is both slanted & thicker version of your typeface.
Detailed explanation-5: -Italic and bold are different font variations of the original typeface design.