Font

Beginner

java.awt

Represents a font for text rendering. Use this to set font family, style, and size.

Category
Rendering
Methods
1
Properties
1

Methods (1)

Properties (1)

Font Styles

int

Constants: Font.PLAIN (0), Font.BOLD (1), Font.ITALIC (2). Can combine with | operator.

java
1Font.PLAIN  // Normal text
2Font.BOLD  // Bold text
3Font.ITALIC  // Italic text
4Font.BOLD | Font.ITALIC  // Bold and italic

Related Classes

Plugins Using This Class