Package com.itextpdf.layout.font
Class FontCharacteristics
- java.lang.Object
-
- com.itextpdf.layout.font.FontCharacteristics
-
public final class FontCharacteristics extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private short
fontWeight
private boolean
isBold
private boolean
isItalic
private boolean
isMonospace
private boolean
undefined
-
Constructor Summary
Constructors Constructor Description FontCharacteristics()
FontCharacteristics(FontCharacteristics other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
short
getFontWeight()
int
hashCode()
boolean
isBold()
boolean
isItalic()
boolean
isMonospace()
boolean
isUndefined()
private void
modified()
FontCharacteristics
setBoldFlag(boolean isBold)
FontCharacteristics
setFontStyle(java.lang.String fs)
Set font styleFontCharacteristics
setFontWeight(short fw)
Sets preferred font weightFontCharacteristics
setFontWeight(java.lang.String fw)
FontCharacteristics
setItalicFlag(boolean isItalic)
FontCharacteristics
setMonospaceFlag(boolean isMonospace)
-
-
-
Constructor Detail
-
FontCharacteristics
public FontCharacteristics()
-
FontCharacteristics
public FontCharacteristics(FontCharacteristics other)
-
-
Method Detail
-
setFontWeight
public FontCharacteristics setFontWeight(short fw)
Sets preferred font weight- Parameters:
fw
- font weight in css notation.- Returns:
- this instance.
- See Also:
FontWeights
-
setFontWeight
public FontCharacteristics setFontWeight(java.lang.String fw)
-
setBoldFlag
public FontCharacteristics setBoldFlag(boolean isBold)
-
setItalicFlag
public FontCharacteristics setItalicFlag(boolean isItalic)
-
setMonospaceFlag
public FontCharacteristics setMonospaceFlag(boolean isMonospace)
-
setFontStyle
public FontCharacteristics setFontStyle(java.lang.String fs)
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()
-
modified
private void modified()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-