| Modifier and Type | Field and Description |
|---|---|
| public static final byte | ANSI_CHARSET
ANSI character set |
| public static final short | COLOR_NORMAL
normal type of black color. |
| public static final short | COLOR_RED
Dark Red color |
| public static final byte | DEFAULT_CHARSET
Default character set. |
| public static final short | SS_NONE
no type offsetting (not super or subscript) |
| public static final short | SS_SUB
subscript |
| public static final short | SS_SUPER
superscript |
| public static final byte | SYMBOL_CHARSET
Symbol character set |
| public static final int | TWIPS_PER_POINT
Font height is handled in points and 1/20th of points so this is the constant used to convert between those two units. |
| public static final byte | U_DOUBLE
double underlined |
| public static final byte | U_DOUBLE_ACCOUNTING
accounting style double underline |
| public static final byte | U_NONE
not underlined |
| public static final byte | U_SINGLE
single (normal) underline |
| public static final byte | U_SINGLE_ACCOUNTING
accounting style single underline |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public int | |
| public short | |
| public short | Returns: short - height in 1/20ths of a pointGet the font height in unit's of 1/20th of a point. |
| public short | Returns: short - height in the familiar unit of measure - pointsGet the font height in points. |
| public String | Returns: String representing the name of the font to useget the name for the font (i.e. Arial) |
| public int | Returns: unique index number of the underlying record this Font represents (probably you don't care unless you're comparing which one is which)get the index within the XSSFWorkbook (sequence within the collection of Font objects) |
| public int | Returns: unique index number of the underlying record this Font represents (probably you don't care unless you're comparing which one is which)
Deprecated
use
getIndex() instead
get the index within the XSSFWorkbook (sequence within the collection of Font objects) |
| public boolean | |
| public boolean | Returns: strikeout or notget whether to use a strikeout horizontal line through the text or not |
| public short | |
| public byte | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setFontHeight(short
height in 1/20ths of a point height)set the font height in unit's of 1/20th of a point. |
| public void | setFontHeightInPoints(short
height in the familiar unit of measure - points height)set the font height |
| public void | setFontName(String
String representing the name of the font to use name)set the name for the font (i.e. Arial) |
| public void | |
| public void | setStrikeout(boolean
or not strikeout)set whether to use a strikeout horizontal line through the text or not |
| public void | |
| public void |
| ANSI_CHARSET | back to summary |
|---|---|
| public static final byte ANSI_CHARSET ANSI character set | |
| COLOR_NORMAL | back to summary |
|---|---|
| public static final short COLOR_NORMAL normal type of black color. | |
| COLOR_RED | back to summary |
|---|---|
| public static final short COLOR_RED Dark Red color | |
| DEFAULT_CHARSET | back to summary |
|---|---|
| public static final byte DEFAULT_CHARSET Default character set. | |
| SS_NONE | back to summary |
|---|---|
| public static final short SS_NONE no type offsetting (not super or subscript) | |
| SS_SUB | back to summary |
|---|---|
| public static final short SS_SUB subscript | |
| SS_SUPER | back to summary |
|---|---|
| public static final short SS_SUPER superscript | |
| SYMBOL_CHARSET | back to summary |
|---|---|
| public static final byte SYMBOL_CHARSET Symbol character set | |
| TWIPS_PER_POINT | back to summary |
|---|---|
| public static final int TWIPS_PER_POINT Font height is handled in points and 1/20th of points so this is the constant used to convert between those two units. | |
| U_DOUBLE | back to summary |
|---|---|
| public static final byte U_DOUBLE double underlined | |
| U_DOUBLE_ACCOUNTING | back to summary |
|---|---|
| public static final byte U_DOUBLE_ACCOUNTING accounting style double underline | |
| U_NONE | back to summary |
|---|---|
| public static final byte U_NONE not underlined | |
| U_SINGLE | back to summary |
|---|---|
| public static final byte U_SINGLE single (normal) underline | |
| U_SINGLE_ACCOUNTING | back to summary |
|---|---|
| public static final byte U_SINGLE_ACCOUNTING accounting style single underline | |
| getBold | back to summary |
|---|---|
| public boolean getBold() | |
| getCharSet | back to summary |
|---|---|
| public int getCharSet() get character-set to use.
| |
| getColor | back to summary |
|---|---|
| public short getColor() get the color for the font
| |
| getFontHeight | back to summary |
|---|---|
| public short getFontHeight() Get the font height in unit's of 1/20th of a point.
For many users, the related
| |
| getFontHeightInPoints | back to summary |
|---|---|
| public short getFontHeightInPoints() Get the font height in points. This will return the same font height that is shown in Excel, such as 10 or 14 or 28.
| |
| getFontName | back to summary |
|---|---|
| public String getFontName() get the name for the font (i.e. Arial)
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() get the index within the XSSFWorkbook (sequence within the collection of Font objects)
| |
| getIndexAsInt | back to summary |
|---|---|
| public int getIndexAsInt()
Deprecated use get the index within the XSSFWorkbook (sequence within the collection of Font objects)
| |
| getItalic | back to summary |
|---|---|
| public boolean getItalic() get whether to use italics or not
| |
| getStrikeout | back to summary |
|---|---|
| public boolean getStrikeout() get whether to use a strikeout horizontal line through the text or not
| |
| getTypeOffset | back to summary |
|---|---|
| public short getTypeOffset() get normal,super or subscript. | |
| getUnderline | back to summary |
|---|---|
| public byte getUnderline() get type of text underlining to use
| |
| setBold | back to summary |
|---|---|
| public void setBold(boolean bold) | |
| setCharSet | back to summary |
|---|---|
| public void setCharSet(byte charset) set character-set to use.
| |
| setCharSet | back to summary |
|---|---|
| public void setCharSet(int charset) set character-set to use.
| |
| setColor | back to summary |
|---|---|
| public void setColor(short color) set the color for the font
| |
| setFontHeight | back to summary |
|---|---|
| public void setFontHeight(short height) set the font height in unit's of 1/20th of a point. Maybe you might want to use the setFontHeightInPoints which matches to the familiar 10, 12, 14 etc..
| |
| setFontHeightInPoints | back to summary |
|---|---|
| public void setFontHeightInPoints(short height) set the font height
| |
| setFontName | back to summary |
|---|---|
| public void setFontName(String name) set the name for the font (i.e. Arial)
| |
| setItalic | back to summary |
|---|---|
| public void setItalic(boolean italic) set whether to use italics or not
| |
| setStrikeout | back to summary |
|---|---|
| public void setStrikeout(boolean strikeout) set whether to use a strikeout horizontal line through the text or not
| |
| setTypeOffset | back to summary |
|---|---|
| public void setTypeOffset(short offset) set normal,super or subscript. | |
| setUnderline | back to summary |
|---|---|
| public void setUnderline(byte underline) set type of text underlining to use
| |