public final class FontCharacteristics extends Object
Constructor and Description |
---|
FontCharacteristics() |
FontCharacteristics(FontCharacteristics other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
short |
getFontWeight() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isMonospace() |
boolean |
isUndefined() |
FontCharacteristics |
setBoldFlag(boolean isBold) |
FontCharacteristics |
setFontStyle(String fs)
Set font style
|
FontCharacteristics |
setFontWeight(short fw)
Sets preferred font weight
|
FontCharacteristics |
setFontWeight(String fw) |
FontCharacteristics |
setItalicFlag(boolean isItalic) |
FontCharacteristics |
setMonospaceFlag(boolean isMonospace) |
public FontCharacteristics()
public FontCharacteristics(FontCharacteristics other)
public FontCharacteristics setFontWeight(short fw)
fw
- font weight in css notation.
FontWeights
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 getFontWeight()
public boolean isUndefined()
Copyright © 1998–2020 iText Group NV. All rights reserved.