Package com.itextpdf.layout.font
Class FontCharacteristics
java.lang.Object
com.itextpdf.layout.font.FontCharacteristics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
short
int
hashCode()
boolean
isBold()
boolean
isItalic()
boolean
boolean
setBoldFlag
(boolean isBold) setFontStyle
(String fs) Set font stylesetFontWeight
(short fw) Sets preferred font weightsetFontWeight
(String fw) setItalicFlag
(boolean isItalic) setMonospaceFlag
(boolean isMonospace)
-
Constructor Details
-
FontCharacteristics
public FontCharacteristics() -
FontCharacteristics
-
-
Method Details
-
setFontWeight
Sets preferred font weight- Parameters:
-
fw
- font weight in css notation. - Returns:
- this instance.
- See Also:
-
setFontWeight
-
setBoldFlag
-
setItalicFlag
-
setMonospaceFlag
-
setFontStyle
Set font style- Parameters:
-
fs
- shall be 'normal', 'italic' or 'oblique'. - Returns:
- this element
-
isItalic
public boolean isItalic() -
isBold
public boolean isBold() -
isMonospace
public boolean isMonospace() -
getFontWeight
public short getFontWeight() -
isUndefined
public boolean isUndefined() -
equals
-
hashCode
public int hashCode()
-