Uses of Class
com.itextpdf.text.Font
-
Packages that use Font Package Description com.itextpdf.text com.itextpdf.text.html.simpleparser com.itextpdf.text.pdf com.itextpdf.text.pdf.draw com.itextpdf.text.pdf.pdfcleanup com.itextpdf.text.xml.simpleparser com.itextpdf.tool.xml XMLWorker package provides a framework to parse XML to PDF with iText.com.itextpdf.tool.xml.css.apply Contains classes that can apply css rules on certainElement
s.com.itextpdf.tool.xml.html.pdfelement Element
s created for specific use when processing HTML. -
-
Uses of Font in com.itextpdf.text
Fields in com.itextpdf.text declared as Font Modifier and Type Field Description protected Font
Chunk. font
This is theFont
of this chunk of text.protected Font
Phrase. font
This is the font of this phrase.Methods in com.itextpdf.text that return Font Modifier and Type Method Description Font
Font. difference(Font font)
Replaces the attributes that are equal to null with the attributes of a given font.Font
Chunk. getFont()
Gets the font of thisChunk
.static Font
FontFactory. getFont(java.lang.String fontname)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, float size)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, float size, int style)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, float size, int style, BaseColor color)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, float size, BaseColor color)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style, BaseColor color)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style, BaseColor color, boolean cached)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, float size)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, float size, int style)
Constructs aFont
-object.static Font
FontFactory. getFont(java.lang.String fontname, java.lang.String encoding, float size, int style, BaseColor color)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, float size)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, float size, int style)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, float size, int style, BaseColor color)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, float size, BaseColor color)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style, BaseColor color)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style, BaseColor color, boolean cached)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, float size)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, float size, int style)
Constructs aFont
-object.Font
FontFactoryImp. getFont(java.lang.String fontname, java.lang.String encoding, float size, int style, BaseColor color)
Constructs aFont
-object.Font
FontProvider. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style, BaseColor color)
Constructs aFont
-object.Font
Phrase. getFont()
Gets the font of the firstChunk
that appears in thisPhrase
.Methods in com.itextpdf.text with parameters of type Font Modifier and Type Method Description int
Font. compareTo(Font font)
Compares thisFont
with anotherFont
Font. difference(Font font)
Replaces the attributes that are equal to null with the attributes of a given font.static Chunk
SpecialSymbol. get(char c, Font font)
Gets a chunk with a symbol character.static Phrase
Phrase. getInstance(int leading, java.lang.String string, Font font)
Gets a special kind of Phrase that changes some characters into corresponding symbols.void
Chunk. setFont(Font font)
Sets the font of thisChunk
.void
Phrase. setFont(Font font)
Sets the main font of this phrase.Constructors in com.itextpdf.text with parameters of type Font Constructor Description Anchor(float leading, java.lang.String string, Font font)
Constructs anAnchor
with a certain leading, a certainString
and a certainFont
.Anchor(java.lang.String string, Font font)
Constructs anAnchor
with a certainString
and a certainFont
.Chunk(char c, Font font)
Constructs a chunk of text with a char and a certainFont
.Chunk(java.lang.String content, Font font)
Constructs a chunk of text with a certain content and a certainFont
.Font(Font other)
Copy constructor of a FontListItem(float leading, java.lang.String string, Font font)
Constructs aListItem
with a certain leading,String
andFont
.ListItem(java.lang.String string, Font font)
Constructs aListItem
with a certainString
and a certainFont
.Paragraph(float leading, java.lang.String string, Font font)
Constructs aParagraph
with a certain leading,String
andFont
.Paragraph(java.lang.String string, Font font)
Constructs aParagraph
with a certainString
and a certainFont
.Phrase(float leading, java.lang.String string, Font font)
Constructs aPhrase
with a certain leading, a certainString
and a certainFont
.Phrase(java.lang.String string, Font font)
Constructs aPhrase
with a certainString
and a certainFont
. -
Uses of Font in com.itextpdf.text.html.simpleparser
Methods in com.itextpdf.text.html.simpleparser that return Font Modifier and Type Method Description Font
ElementFactory. getFont(ChainedProperties chain)
Deprecated.Creates a Font object based on a chain of properties. -
Uses of Font in com.itextpdf.text.pdf
Fields in com.itextpdf.text.pdf declared as Font Modifier and Type Field Description protected Font
FontSelector. currentFont
private Font
PdfSignatureAppearance. layer2Font
Font for the text in Layer 2.Fields in com.itextpdf.text.pdf with type parameters of type Font Modifier and Type Field Description protected java.util.ArrayList<Font>
FontSelector. fonts
protected java.util.ArrayList<Font>
FontSelector. unsupportedFonts
Methods in com.itextpdf.text.pdf that return Font Modifier and Type Method Description protected Font
FontSelector. getFont(int i)
Font
PdfSignatureAppearance. getLayer2Font()
Gets the n2 and n4 layer font.Methods in com.itextpdf.text.pdf with parameters of type Font Modifier and Type Method Description void
FontSelector. addFont(Font font)
Adds aFont
to be searched for valid characters.protected void
PdfDocument. addSpacing(float extraspace, float oldleading, Font f)
Calls addSpacing(float, float, Font, boolean (false)).protected void
PdfDocument. addSpacing(float extraspace, float oldleading, Font f, boolean spacingAfter)
Adds extra spacing.static float
ColumnText. fitText(Font font, java.lang.String text, Rectangle rect, float maxFontSize, int runDirection)
Fits the text to some rectangle adjusting the font size as needed.private boolean
FontSelector. isSupported(Font font)
void
PdfSignatureAppearance. setLayer2Font(Font layer2Font)
Sets the n2 and n4 layer font. -
Uses of Font in com.itextpdf.text.pdf.draw
Constructors in com.itextpdf.text.pdf.draw with parameters of type Font Constructor Description LineSeparator(Font font)
Creates a new instance of the LineSeparator class. -
Uses of Font in com.itextpdf.text.pdf.pdfcleanup
Methods in com.itextpdf.text.pdf.pdfcleanup that return Font Modifier and Type Method Description private Font
PdfCleanUpProcessor. retrieveFontFromAcroForm(PdfName fontName, PdfNumber size)
-
Uses of Font in com.itextpdf.text.xml.simpleparser
Methods in com.itextpdf.text.xml.simpleparser with parameters of type Font Modifier and Type Method Description static Chunk
EntitiesToSymbol. get(java.lang.String e, Font font)
Gets a chunk with a symbol character. -
Uses of Font in com.itextpdf.tool.xml
Methods in com.itextpdf.tool.xml that return Font Modifier and Type Method Description Font
XMLWorkerFontProvider. getFont(java.lang.String fontname, java.lang.String encoding, boolean embedded, float size, int style, BaseColor color)
Font
XMLWorkerFontProvider. getFont(java.lang.String fontname, java.lang.String encoding, float size, int style)
private Font
XMLWorkerFontProvider. getUnicodeFont(java.lang.String fontName, java.lang.String encoding, float size, int style)
-
Uses of Font in com.itextpdf.tool.xml.css.apply
Methods in com.itextpdf.tool.xml.css.apply that return Font Modifier and Type Method Description Font
ChunkCssApplier. applyFontStyles(Tag t)
-
Uses of Font in com.itextpdf.tool.xml.html.pdfelement
Constructors in com.itextpdf.tool.xml.html.pdfelement with parameters of type Font Constructor Description NoNewLineParagraph(float leading, java.lang.String string, Font font)
Constructs aParagraph
with a certain leading,String
andFont
.NoNewLineParagraph(java.lang.String string, Font font)
Constructs aParagraph
with a certainString
and a certainFont
.
-