Javafx Text Color, font() method enables you to specify the font family name and size.