Example usage for Java com.itextpdf.text Font fields, constructors, methods, implement or subclass
The text is from its open source code.
int | NORMAL this is a possible style. |
int | BOLD this is a possible style. |
int | ITALIC this is a possible style. |
int | UNDERLINE this is a possible style. |
int | STRIKETHRU this is a possible style. |
int | BOLDITALIC this is a possible style. |
int | UNDEFINED the value of an undefined attribute. |
Font(final FontFamily family, final float size, final int style, final BaseColor color) Constructs a Font. | |
Font(final BaseFont bf, final float size, final int style, final BaseColor color) Constructs a Font. | |
Font(final BaseFont bf, final float size) Constructs a Font. | |
Font(final FontFamily family, final float size) Constructs a Font. | |
Font(final BaseFont bf, final float size, final int style) Constructs a Font. | |
Font(final FontFamily family, final float size, final int style) Constructs a Font. | |
Font() Constructs a Font. | |
Font(final Font other) Copy constructor of a Font | |
Font(final BaseFont bf) Constructs a Font. | |
Font(final FontFamily family) Constructs a Font. |
BaseFont | getBaseFont() Gets the BaseFont inside this object. |
BaseFont | getCalculatedBaseFont(final boolean specialEncoding) Gets the BaseFont this class represents. |
float | getCalculatedSize() Gets the size that can be used with the calculated BaseFont . |
BaseColor | getColor() Gets the color of this font. |
FontFamily | getFamily() Gets the family of this font. |
FontFamily | getFamily(final String family) Translates a String -value of a certain family into the FontFamily enum that is used for this family in this class. |
String | getFamilyname() Gets the familyname as a String. |
float | getSize() Gets the size of this font. |
int | getStyle() Gets the style of this font. |
boolean | isBold() checks if this font is Bold. |
boolean | isItalic() checks if this font is italic. |
boolean | isStrikethru() checks if the style of this font is STRIKETHRU. |
boolean | isUnderlined() checks if this font is underlined. |
void | setColor(final BaseColor color) Sets the color. |
void | setColor(final int red, final int green, final int blue) Sets the color. |
void | setFamily(final String family) Sets the family using a String ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats"). |
void | setSize(final float size) Sets the size. |
void | setStyle(final int style) Sets the style. |
void | setStyle(final String style) Sets the style using a String containing one or more of the following values: normal, bold, italic, oblique, underline, line-through |