[]
Use this type with APIs such as Workbook.getUsedFonts() to inspect the font name and style attributes used in a workbook.
FontInfo fontInfo = new FontInfo();
fontInfo.name = "Arial";
fontInfo.bold = true;
fontInfo.italic = false;
FontInfo fontInfo = new FontInfo();
fontInfo.name = "Arial";
String fontName = fontInfo.name;
FontInfo fontInfo = new FontInfo();
fontInfo.bold = true;
boolean isBold = fontInfo.bold;
FontInfo fontInfo = new FontInfo();
fontInfo.italic = true;
boolean isItalic = fontInfo.italic;
Two FontInfo objects are considered equal when their name, bold, and italic fields have the same values. This method returns false if obj is not a FontInfo instance or is null.
FontInfo fontInfo = new FontInfo();
fontInfo.name = "Arial";
fontInfo.bold = true;
fontInfo.italic = false;
FontInfo other = new FontInfo();
other.name = "Arial";
other.bold = true;
other.italic = false;
boolean isEqual = fontInfo.equals(other);
The returned value is computed from the name, bold, and italic fields. Font information objects that are equal according to equals(Object) return the same hash code.
FontInfo fontInfo = new FontInfo();
fontInfo.name = "Arial";
fontInfo.bold = true;
fontInfo.italic = false;
int hashCode = fontInfo.hashCode();