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

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

Introduction

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

The text is from its open source code.

Subclass

com.itextpdf.text.Font has subclasses.
Click this link to see all its subclasses.

Field

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.

Constructor

Method

BaseFontgetBaseFont()
Gets the BaseFont inside this object.
BaseFontgetCalculatedBaseFont(final boolean specialEncoding)
Gets the BaseFont this class represents.
floatgetCalculatedSize()
Gets the size that can be used with the calculated BaseFont .
BaseColorgetColor()
Gets the color of this font.
FontFamilygetFamily()
Gets the family of this font.
FontFamilygetFamily(final String family)
Translates a String -value of a certain family into the FontFamily enum 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 italic.
booleanisStrikethru()
checks if the style of this font is STRIKETHRU.
booleanisUnderlined()
checks if this font is underlined.
voidsetColor(final BaseColor color)
Sets the color.
voidsetColor(final int red, final int green, final int blue)
Sets the color.
voidsetFamily(final String family)
Sets the family using a String ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").
voidsetSize(final float size)
Sets the size.
voidsetStyle(final int style)
Sets the style.
voidsetStyle(final String style)
Sets the style using a String containing one or more of the following values: normal, bold, italic, oblique, underline, line-through