public final class FontCharacteristics extends Object
Constructor and Description |
---|
FontCharacteristics() |
FontCharacteristics(FontCharacteristics other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
FontWeight |
getFontWeight() |
short |
getFontWeightNumber() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isMonospace() |
boolean |
isUndefined() |
FontCharacteristics |
setBoldFlag(boolean isBold) |
FontCharacteristics |
setFontStyle(String fs)
Set font style
|
FontCharacteristics |
setFontWeight(FontWeight fw) |
FontCharacteristics |
setFontWeight(short fw) |
FontCharacteristics |
setFontWeight(String fw) |
FontCharacteristics |
setItalicFlag(boolean isItalic) |
FontCharacteristics |
setMonospaceFlag(boolean isMonospace) |
public FontCharacteristics()
public FontCharacteristics(FontCharacteristics other)
public FontCharacteristics setFontWeight(FontWeight fw)
public FontCharacteristics setFontWeight(short fw)
public FontCharacteristics setFontWeight(String fw)
public FontCharacteristics setBoldFlag(boolean isBold)
public FontCharacteristics setItalicFlag(boolean isItalic)
public FontCharacteristics setMonospaceFlag(boolean isMonospace)
public FontCharacteristics setFontStyle(String fs)
fs
- shall be 'normal', 'italic' or 'oblique'.
public boolean isItalic()
public boolean isBold()
public boolean isMonospace()
public short getFontWeightNumber()
public FontWeight getFontWeight()
public boolean isUndefined()
Copyright © 1998–2018 iText Group NV. All rights reserved.