Uses of Class
com.itextpdf.kernel.font.PdfFont
Package
Description
-
Uses of PdfFont in com.itextpdf.barcodes
ModifierConstructorDescriptionBarcode128
(PdfDocument document, PdfFont font) Creates new Barcode128, which will use the provided fontBarcode39
(PdfDocument document, PdfFont font) Creates a new Barcode39.BarcodeCodabar
(PdfDocument document, PdfFont font) Creates a new BarcodeCodabar.BarcodeEAN
(PdfDocument document, PdfFont font) Creates new BarcodeEANBarcodeInter25
(PdfDocument document, PdfFont font) Creates new BarcodeInter25BarcodeMSI
(PdfDocument document, PdfFont font) Creates a new BarcodeMSI -
Uses of PdfFont in com.itextpdf.forms.fields
Modifier and TypeMethodDescriptionAbstractPdfFormField.getFont()
Gets the current font of the form field.Modifier and TypeMethodDescriptionBasic setter for thefont
property.AbstractPdfFormField.setFontAndSize
(PdfFont font, float fontSize) Combined setter for thefont
andfontSize
properties.Set text field value with given font and size. -
Uses of PdfFont in com.itextpdf.forms.form.renderer
-
Uses of PdfFont in com.itextpdf.forms.util
Modifier and TypeMethodDescriptionstatic float
FontSizeUtil.approximateFontSizeToFitSingleLine
(PdfFont localFont, Rectangle bBox, String value, float minValue, float borderWidth) Calculates the font size that will fit the text in the given rectangle. -
Uses of PdfFont in com.itextpdf.kernel.font
Modifier and TypeClassDescriptionclass
PdfSimpleFont
FontProgram> class
Note.class
class
class
Low-level API class for Type 3 fonts.Modifier and TypeMethodDescriptionstatic PdfFont
PdfFontFactory.createFont()
Creates a new instance of default font, namelyStandardFonts.HELVETICA
standard font withPdfEncodings.WINANSI
encoding.static PdfFont
PdfFontFactory.createFont
(byte[] fontProgram, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFont
instance by the bytes of the underlying font program.static PdfFont
PdfFontFactory.createFont
(byte[] fontProgram, String encoding) Created aPdfFont
instance by the bytes of the underlying font program.static PdfFont
PdfFontFactory.createFont
(byte[] fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFont
instance by the bytes of the underlying font program.static PdfFont
PdfFontFactory.createFont
(byte[] fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Created aPdfFont
instance by the bytes of the underlying font program.static PdfFont
PdfFontFactory.createFont
(FontProgram fontProgram) Created aPdfFont
instance given the given underlyingFontProgram
instance.static PdfFont
PdfFontFactory.createFont
(FontProgram fontProgram, String encoding) Created aPdfFont
instance given the given underlyingFontProgram
instance.static PdfFont
PdfFontFactory.createFont
(FontProgram fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFont
instance given the given underlyingFontProgram
instance.static PdfFont
PdfFontFactory.createFont
(PdfDictionary fontDictionary) Creates aPdfFont
by already existing font dictionary.static PdfFont
PdfFontFactory.createFont
(String fontProgram) Creates aPdfFont
instance by the path of the font program filestatic PdfFont
PdfFontFactory.createFont
(String fontProgram, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFont
instance given the path to the font file.static PdfFont
PdfFontFactory.createFont
(String fontProgram, String encoding) Creates aPdfFont
instance by the path of the font program file and given encoding.static PdfFont
PdfFontFactory.createFont
(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFont
instance given the path to the font file.static PdfFont
PdfFontFactory.createFont
(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Created aPdfFont
instance given the path to the font file.static PdfFont
PdfFontFactory.createFont
(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, PdfDocument cacheTo) Creates aPdfFont
instance by the path of the font program file and given encoding and place it inside thePdfDocument
.static PdfFont
PdfFontFactory.createFont
(String fontProgram, String encoding, PdfDocument cacheTo) Creates aPdfFont
instance by the path of the font program file and given encoding and place it inside thePdfDocument
.static PdfFont
PdfFontFactory.createRegisteredFont
(String fontName) CreatesPdfFont
based on registeredFontProgram
's.static PdfFont
PdfFontFactory.createRegisteredFont
(String fontName, String encoding) CreatesPdfFont
based on registeredFontProgram
's.static PdfFont
PdfFontFactory.createRegisteredFont
(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) CreatesPdfFont
based on registeredFontProgram
's.static PdfFont
PdfFontFactory.createRegisteredFont
(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) CreatesPdfFont
based on registeredFontProgram
's.static PdfFont
PdfFontFactory.createRegisteredFont
(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, int style) CreatesPdfFont
based on registeredFontProgram
's.static PdfFont
PdfFontFactory.createRegisteredFont
(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, int style, boolean cached) CreatesPdfFont
based on registeredFontProgram
's.static PdfFont
PdfFontFactory.createTtcFont
(byte[] ttc, int ttcIndex, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Creates aPdfFont
instance from the TrueType Collection represented by its byte contents.static PdfFont
PdfFontFactory.createTtcFont
(String ttc, int ttcIndex, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Creates aPdfFont
instance from the TrueType Collection given by the path to the .ttc file. -
Uses of PdfFont in com.itextpdf.kernel.pdf
Modifier and TypeMethodDescriptionAdds aPdfFont
instance to this document so that this font is flushed automatically on document close.FindPdfFont
from loaded fonts with corresponding fontProgram and encoding or CMAP.PdfDocument.getDefaultFont()
Gets default font for the document: Helvetica, WinAnsi.PdfDocument.getFont
(PdfDictionary dictionary) Create a new instance ofPdfFont
or load already created one.Modifier and TypeMethodDescriptionprotected Collection<PdfFont>
PdfDocument.getDocumentFonts()
List all newly added or loaded fontsModifier and TypeMethodDescriptionboolean
Adds aPdfFont
instance to this document so that this font is flushed automatically on document close.PdfResources.addFont
(PdfDocument pdfDocument, PdfFont font) Adds font to resources and registers PdfFont in the document for further flushing. -
Uses of PdfFont in com.itextpdf.kernel.pdf.annot
Modifier and TypeMethodDescriptionPdfTrapNetworkAnnotation.setFauxedFonts
(List<PdfFont> fauxedFonts) A list of font dictionaries representing fonts that were fauxed (replaced by substitute fonts) during the generation of trap networks for the page. -
Uses of PdfFont in com.itextpdf.kernel.pdf.canvas
-
Uses of PdfFont in com.itextpdf.kernel.pdf.canvas.parser
Modifier and TypeMethodDescriptionprotected PdfFont
PdfCanvasProcessor.getFont
(PdfDictionary fontDict) Creates aPdfFont
object by a font dictionary. -
Uses of PdfFont in com.itextpdf.kernel.pdf.canvas.parser.data
-
Uses of PdfFont in com.itextpdf.layout
-
Uses of PdfFont in com.itextpdf.layout.font
Modifier and TypeMethodDescriptionComplexFontSelectorStrategy.getCurrentFont()
abstract PdfFont
FontSelectorStrategy.getCurrentFont()
FontProvider.getPdfFont
(FontInfo fontInfo) Get from cache or create a new instance ofPdfFont
.FontProvider.getPdfFont
(FontInfo fontInfo, FontSet additionalFonts) Get from cache or create a new instance ofPdfFont
.protected PdfFont
FontSelectorStrategy.getPdfFont
(FontInfo fontInfo) Utility method to create PdfFont. -
Uses of PdfFont in com.itextpdf.layout.renderer
Modifier and TypeMethodDescriptionAbstractRenderer.getPropertyAsFont
(int property) Returns a property with a certain key, as a font object.Modifier and TypeMethodDescriptionstatic float[]
TextRenderer.calculateAscenderDescender
(PdfFont font) Get ascender and descender from font metrics.static float[]
TextRenderer.calculateAscenderDescender
(PdfFont font, RenderingMode mode) Get ascender and descender from font metrics.protected TextRenderer
TextRenderer.createCopy
(GlyphLine gl, PdfFont font) static GlyphLine
TextPreprocessingUtil.replaceSpecialWhitespaceGlyphs
(GlyphLine line, PdfFont font) Replaces special whitespace glyphs to new whitespace ' ' glyph that has custom width.protected void
TextRenderer.setProcessedGlyphLineAndFont
(GlyphLine gl, PdfFont font) void
Manually set a GlyphLine and PdfFont for rendering. -
Uses of PdfFont in com.itextpdf.pdfa.checker
Modifier and TypeMethodDescriptionvoid
abstract void
Performs a number of checks on the font.void
PdfA1Checker.checkFontGlyphs
(PdfFont font, PdfStream contentStream) void
PdfA2Checker.checkFontGlyphs
(PdfFont font, PdfStream contentStream) abstract void
PdfAChecker.checkFontGlyphs
(PdfFont font, PdfStream contentStream) Performs a check of the each font glyph as a Form XObject. -
Uses of PdfFont in com.itextpdf.signatures
Modifier and TypeMethodDescriptionPdfSignatureAppearance.getLayer2Font()
Gets the n2 and n4 layer font.Modifier and TypeMethodDescriptionPdfSignatureAppearance.setLayer2Font
(PdfFont layer2Font) Sets the n2 and n4 layer font. -
Uses of PdfFont in com.itextpdf.svg.renderers.impl
Modifier and TypeMethodDescriptionfloat
ISvgTextNodeRenderer.getTextContentLength
(float parentFontSize, PdfFont font) float
TextLeafSvgNodeRenderer.getTextContentLength
(float parentFontSize, PdfFont font) float
TextSvgBranchRenderer.getTextContentLength
(float parentFontSize, PdfFont font)