Java com.lowagie.text Font fields, constructors, methods, implement or subclass

Example usage for Java com.lowagie.text Font fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.lowagie.text Font.

The text is from its open source code.

Field

intCOURIER
a possible value of a font family.
intHELVETICA
a possible value of a font family.
intTIMES_ROMAN
a possible value of a font family.
intSYMBOL
a possible value of a font family.
intNORMAL
this is a possible style.
intBOLD
this is a possible style.
intITALIC
this is a possible style.
intUNDERLINE
this is a possible style.
intSTRIKETHRU
this is a possible style.
intBOLDITALIC
this is a possible style.
intUNDEFINED
the value of an undefined attribute.
intDEFAULTSIZE
the value of the default size.
intfamily
the value of the fontfamily.
floatsize
the value of the fontsize.
intstyle
the value of the style.
Colorcolor
the value of the color.

Constructor

Font(BaseFont bf, float size)
Constructs a Font.
Font(int family, float size)
Constructs a Font.
Font(BaseFont bf, float size, int style)
Constructs a Font.
Font(int family, float size, int style)
Constructs a Font.
Font()
Constructs a Font.
Font(int family, float size, int style, Color color)
Constructs a Font.
Font(BaseFont bf, float size, int style, Color color)
Constructs a Font.
Font(Font other)
Copy constructor of a Font
Font(BaseFont bf)
Constructs a Font.
Font(int family)
Constructs a Font.

Method

BaseFontgetBaseFont()
Gets the BaseFont inside this object.
BaseFontgetCalculatedBaseFont(boolean specialEncoding)
Gets the BaseFont this class represents.
floatgetCalculatedLeading(float linespacing)
Gets the leading that can be used with this font.
floatgetCalculatedSize()
Gets the size that can be used with the calculated BaseFont .
intgetCalculatedStyle()
Gets the style that can be used with the calculated BaseFont .
ColorgetColor()
Gets the color of this font.
intgetFamily()
Gets the family of this font.
intgetFamilyIndex(String family)
Translates a String -value of a certain family into the index that is used for this family in this class.
StringgetFamilyname()
Gets the familyname as a String.
floatgetSize()
Gets the size of this font.
intgetStyle()
Gets the style of this font.
booleanisBold()
checks if this font is Bold.
booleanisItalic()
checks if this font is Bold.
booleanisStandardFont()
Checks if the properties of this font are undefined or null.
booleanisStrikethru()
checks if the style of this font is STRIKETHRU.
booleanisUnderlined()
checks if this font is underlined.
voidsetColor(Color color)
Sets the color.
voidsetColor(int red, int green, int blue)
Sets the color.
voidsetFamily(String family)
Sets the family using a String ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").
voidsetSize(float size)
Sets the size.
voidsetStyle(int style)
Sets the style.
voidsetStyle(String style)
Sets the style using a String containing one of more of the following values: normal, bold, italic, underline, strike.