public interface FontFormatting
Modifier and Type | Method and Description |
---|---|
short |
getEscapementType()
get the type of super or subscript for the font
|
Color |
getFontColor() |
short |
getFontColorIndex() |
int |
getFontHeight()
gets the height of the font in 1/20th point units
|
short |
getUnderlineType()
get the type of underlining for the font
|
boolean |
isBold()
get whether the font weight is set to bold or not
|
boolean |
isItalic() |
boolean |
isStruckout() |
void |
resetFontStyle()
set font style options to default values (non-italic, non-bold)
|
void |
setEscapementType(short escapementType)
set the escapement type for the font
|
void |
setFontColor(Color color)
Sets the colour to use
|
void |
setFontColorIndex(short color)
Sets the indexed colour to use
|
void |
setFontHeight(int height)
Sets the height of the font in 1/20th point units
|
void |
setFontStyle(boolean italic,
boolean bold)
set font style options.
|
void |
setUnderlineType(short underlineType)
set the type of underlining type for the font
|
short getEscapementType()
Font.SS_NONE
,
Font.SS_SUPER
,
Font.SS_SUB
void setEscapementType(short escapementType)
escapementType
- super or subscript optionFont.SS_NONE
,
Font.SS_SUPER
,
Font.SS_SUB
short getFontColorIndex()
void setFontColorIndex(short color)
color
- font colour indexColor getFontColor()
void setFontColor(Color color)
color
- font colour to useint getFontHeight()
void setFontHeight(int height)
height
- the height in twips (in points/20)short getUnderlineType()
Font.U_NONE
,
Font.U_SINGLE
,
Font.U_DOUBLE
,
Font.U_SINGLE_ACCOUNTING
,
Font.U_DOUBLE_ACCOUNTING
void setUnderlineType(short underlineType)
underlineType
- super or subscript optionFont.U_NONE
,
Font.U_SINGLE
,
Font.U_DOUBLE
,
Font.U_SINGLE_ACCOUNTING
,
Font.U_DOUBLE_ACCOUNTING
boolean isBold()
boolean isItalic()
boolean isStruckout()
void setFontStyle(boolean italic, boolean bold)
italic
- - if true, set posture style to italic, otherwise to normalbold
- if true, set font weight to bold, otherwise to normalvoid resetFontStyle()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.