font overview

Java Font constructor

Java Font constructor: Font class sets font to the text. The text may represent a string displayed by drawString(), setText(), setLabel(), appendText() etc. methods. Syntax of Font constructor to create a Font object Font f1 = new Font(String fontName, int fontStyle, int fontSize); Java Font constructor: To give the font…