Uses of Class
com.itextpdf.text.Font
Packages that use Font
Package
Description
XMLWorker package provides a framework to parse XML to PDF with iText.
Contains classes that can apply css rules on certain
Element
s.Element
s created for specific use when processing HTML.-
Uses of Font in com.itextpdf.text
Fields in com.itextpdf.text declared as FontModifier and TypeFieldDescriptionprotected 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 FontModifier and TypeMethodDescriptionFont.difference
(Font font) Replaces the attributes that are equal to null with the attributes of a given font.Chunk.getFont()
Gets the font of thisChunk
.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
FontFactory.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color) Constructs aFont
-object.static Font
FontFactory.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color, boolean cached) Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.FontFactoryImp.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color) Constructs aFont
-object.FontFactoryImp.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color, boolean cached) Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.FontProvider.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color) Constructs aFont
-object.Phrase.getFont()
Gets the font of the firstChunk
that appears in thisPhrase
.Methods in com.itextpdf.text with parameters of type FontModifier and TypeMethodDescriptionint
Compares thisFont
with anotherFont.difference
(Font font) Replaces the attributes that are equal to null with the attributes of a given font.static Chunk
Gets a chunk with a symbol character.static final Phrase
Phrase.getInstance
(int leading, String string, Font font) Gets a special kind of Phrase that changes some characters into corresponding symbols.void
Sets the font of thisChunk
.void
Sets the main font of this phrase.Constructors in com.itextpdf.text with parameters of type FontModifierConstructorDescriptionConstructs anAnchor
with a certain leading, a certainString
and a certainFont
.Constructs anAnchor
with a certainString
and a certainFont
.Constructs a chunk of text with a char and a certainFont
.Constructs a chunk of text with a certain content and a certainFont
.Copy constructor of a FontConstructs aListItem
with a certain leading,String
andFont
.Constructs aListItem
with a certainString
and a certainFont
.Constructs aParagraph
with a certain leading,String
andFont
.Constructs aParagraph
with a certainString
and a certainFont
.Constructs aPhrase
with a certain leading, a certainString
and a certainFont
.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 FontModifier and TypeMethodDescriptionElementFactory.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 FontModifier and TypeFieldDescriptionprotected 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 FontMethods in com.itextpdf.text.pdf that return FontModifier and TypeMethodDescriptionprotected Font
FontSelector.getFont
(int i) PdfSignatureAppearance.getLayer2Font()
Gets the n2 and n4 layer font.Methods in com.itextpdf.text.pdf with parameters of type FontModifier and TypeMethodDescriptionvoid
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
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 FontModifierConstructorDescriptionLineSeparator
(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 FontModifier and TypeMethodDescriptionprivate 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 -
Uses of Font in com.itextpdf.tool.xml
Methods in com.itextpdf.tool.xml that return Font -
Uses of Font in com.itextpdf.tool.xml.css.apply
Methods in com.itextpdf.tool.xml.css.apply that return Font -
Uses of Font in com.itextpdf.tool.xml.html.pdfelement
Constructors in com.itextpdf.tool.xml.html.pdfelement with parameters of type FontModifierConstructorDescriptionNoNewLineParagraph
(float leading, String string, Font font) Constructs aParagraph
with a certain leading,String
andFont
.NoNewLineParagraph
(String string, Font font) Constructs aParagraph
with a certainString
and a certainFont
.