Uses of Class
com.itextpdf.kernel.font.PdfFont
Packages that use PdfFont
Package
Description
-
Uses of PdfFont in com.itextpdf.barcodes
Fields in com.itextpdf.barcodes declared as PdfFontMethods in com.itextpdf.barcodes that return PdfFontMethods in com.itextpdf.barcodes with parameters of type PdfFontConstructors in com.itextpdf.barcodes with parameters of type PdfFontModifierConstructorDescriptionBarcode128(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
Fields in com.itextpdf.forms.fields declared as PdfFontMethods in com.itextpdf.forms.fields that return PdfFontModifier and TypeMethodDescriptionAbstractPdfFormField.getFont()Gets the current font of the form field.TerminalFormFieldBuilder.getFont()Get font to be used for form field creation.Methods in com.itextpdf.forms.fields with parameters of type PdfFontModifier and TypeMethodDescriptionBasic setter for thefontproperty.Set font to be used for form field creation.AbstractPdfFormField.setFontAndSize(PdfFont font, float fontSize) Combined setter for thefontandfontSizeproperties.Set text field value with given font and size. -
Uses of PdfFont in com.itextpdf.forms.form.renderer
Fields in com.itextpdf.forms.form.renderer declared as PdfFont -
Uses of PdfFont in com.itextpdf.forms.util
Methods in com.itextpdf.forms.util with parameters of type PdfFontModifier and TypeMethodDescriptionstatic floatFontSizeUtil.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
Subclasses of PdfFont in com.itextpdf.kernel.fontModifier and TypeClassDescriptionclassPdfSimpleFontFontProgram> classNote.classclassclassLow-level API class for Type 3 fonts.Methods in com.itextpdf.kernel.font that return PdfFontModifier and TypeMethodDescriptionstatic PdfFontPdfFontFactory.createFont()Creates a new instance of default font, namelyStandardFonts.HELVETICAstandard font withPdfEncodings.WINANSIencoding.static PdfFontPdfFontFactory.createFont(byte[] fontProgram, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFontinstance by the bytes of the underlying font program.static PdfFontPdfFontFactory.createFont(byte[] fontProgram, String encoding) Created aPdfFontinstance by the bytes of the underlying font program.static PdfFontPdfFontFactory.createFont(byte[] fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFontinstance by the bytes of the underlying font program.static PdfFontPdfFontFactory.createFont(byte[] fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Created aPdfFontinstance by the bytes of the underlying font program.static PdfFontPdfFontFactory.createFont(FontProgram fontProgram) Created aPdfFontinstance given the given underlyingFontPrograminstance.static PdfFontPdfFontFactory.createFont(FontProgram fontProgram, String encoding) Created aPdfFontinstance given the given underlyingFontPrograminstance.static PdfFontPdfFontFactory.createFont(FontProgram fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFontinstance given the given underlyingFontPrograminstance.static PdfFontPdfFontFactory.createFont(PdfDictionary fontDictionary) Creates aPdfFontby already existing font dictionary.static PdfFontPdfFontFactory.createFont(String fontProgram) Creates aPdfFontinstance by the path of the font program filestatic PdfFontPdfFontFactory.createFont(String fontProgram, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFontinstance given the path to the font file.static PdfFontPdfFontFactory.createFont(String fontProgram, String encoding) Creates aPdfFontinstance by the path of the font program file and given encoding.static PdfFontPdfFontFactory.createFont(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) Created aPdfFontinstance given the path to the font file.static PdfFontPdfFontFactory.createFont(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Created aPdfFontinstance given the path to the font file.static PdfFontPdfFontFactory.createFont(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, PdfDocument cacheTo) Creates aPdfFontinstance by the path of the font program file and given encoding and place it inside thePdfDocument.static PdfFontPdfFontFactory.createFont(String fontProgram, String encoding, PdfDocument cacheTo) Creates aPdfFontinstance by the path of the font program file and given encoding and place it inside thePdfDocument.static PdfFontPdfFontFactory.createRegisteredFont(String fontName) CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory.createRegisteredFont(String fontName, String encoding) CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy) CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, int style) CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, int style, boolean cached) CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory.createTtcFont(byte[] ttc, int ttcIndex, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Creates aPdfFontinstance from the TrueType Collection represented by its byte contents.static PdfFontPdfFontFactory.createTtcFont(String ttc, int ttcIndex, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached) Creates aPdfFontinstance from the TrueType Collection given by the path to the .ttc file. -
Uses of PdfFont in com.itextpdf.kernel.pdf
Methods in com.itextpdf.kernel.pdf that return PdfFontModifier and TypeMethodDescriptionAdds aPdfFontinstance to this document so that this font is flushed automatically on document close.FindPdfFontfrom loaded fonts with corresponding fontProgram and encoding or CMAP.PdfDocument.getDefaultFont()Gets default font for the document: Helvetica, WinAnsi.DefaultFontStrategy.getFont()Gets default font.PdfDocument.getFont(PdfDictionary dictionary) Create a new instance ofPdfFontor load already created one.Methods in com.itextpdf.kernel.pdf that return types with arguments of type PdfFontModifier and TypeMethodDescriptionprotected Collection<PdfFont>PdfDocument.getDocumentFonts()List all newly added or loaded fontsMethods in com.itextpdf.kernel.pdf with parameters of type PdfFontModifier and TypeMethodDescriptionbooleanAdds aPdfFontinstance 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
Method parameters in com.itextpdf.kernel.pdf.annot with type arguments of type PdfFontModifier 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
Methods in com.itextpdf.kernel.pdf.canvas that return PdfFontMethods in com.itextpdf.kernel.pdf.canvas with parameters of type PdfFont -
Uses of PdfFont in com.itextpdf.kernel.pdf.canvas.parser
Methods in com.itextpdf.kernel.pdf.canvas.parser that return PdfFontModifier and TypeMethodDescriptionprotected PdfFontPdfCanvasProcessor.getFont(PdfDictionary fontDict) Creates aPdfFontobject by a font dictionary. -
Uses of PdfFont in com.itextpdf.kernel.pdf.canvas.parser.data
Methods in com.itextpdf.kernel.pdf.canvas.parser.data that return PdfFont -
Uses of PdfFont in com.itextpdf.kernel.utils.checkers
Methods in com.itextpdf.kernel.utils.checkers with parameters of type PdfFontModifier and TypeMethodDescriptionbooleanChecks passed symbol against the fontstatic intFontCheckUtil.checkGlyphsOfText(String text, PdfFont font, FontCheckUtil.CharacterChecker checker) Checks the text by the passed checker and the font. -
Uses of PdfFont in com.itextpdf.kernel.validation.context
Methods in com.itextpdf.kernel.validation.context that return PdfFontMethods in com.itextpdf.kernel.validation.context that return types with arguments of type PdfFontModifier and TypeMethodDescriptionPdfDocumentValidationContext.getDocumentFonts()Gets the document fonts.Constructors in com.itextpdf.kernel.validation.context with parameters of type PdfFontModifierConstructorDescriptionFontValidationContext(String text, PdfFont font) Instantiates a newFontValidationContextbased on text and font.Constructor parameters in com.itextpdf.kernel.validation.context with type arguments of type PdfFontModifierConstructorDescriptionPdfDocumentValidationContext(PdfDocument pdfDocument, Collection<PdfFont> documentFonts) Instantiates a newPdfDocumentValidationContextbased on document and document fonts. -
Uses of PdfFont in com.itextpdf.layout
Fields in com.itextpdf.layout declared as PdfFontMethods in com.itextpdf.layout with parameters of type PdfFont -
Uses of PdfFont in com.itextpdf.layout.font
Fields in com.itextpdf.layout.font with type parameters of type PdfFontMethods in com.itextpdf.layout.font that return PdfFontModifier and TypeMethodDescriptionFontProvider.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. -
Uses of PdfFont in com.itextpdf.layout.font.selectorstrategy
Methods in com.itextpdf.layout.font.selectorstrategy that return PdfFontModifier and TypeMethodDescriptionprotected PdfFontAbstractFontSelectorStrategy.matchFont(int codePoint, FontSelector fontSelector, FontProvider fontProvider, FontSet additionalFonts) Finds the best font which matches passed symbol.Methods in com.itextpdf.layout.font.selectorstrategy that return types with arguments of type PdfFontModifier and TypeMethodDescriptionAbstractFontSelectorStrategy.getGlyphLines(String text) Converts text into glyphs with the best matching font.IFontSelectorStrategy.getGlyphLines(String text) Converts text into glyphs with the best matching font. -
Uses of PdfFont in com.itextpdf.layout.renderer
Methods in com.itextpdf.layout.renderer that return PdfFontModifier and TypeMethodDescriptionAbstractRenderer.getPropertyAsFont(int property) Returns a property with a certain key, as a font object.protected PdfFontBlockRenderer.getResolvedFont(PdfDocument pdfDocument) Get the font set in properties, if it is not set, then resolves the firstPdfFontfromFontProvider.Methods in com.itextpdf.layout.renderer with parameters of type PdfFontModifier 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 TextRendererTextRenderer.createCopy(GlyphLine gl, PdfFont font) static GlyphLineTextPreprocessingUtil.replaceSpecialWhitespaceGlyphs(GlyphLine line, PdfFont font) Replaces special whitespace glyphs to new whitespace ' ' glyph that has custom width.protected voidTextRenderer.setProcessedGlyphLineAndFont(GlyphLine gl, PdfFont font) voidManually set a GlyphLine and PdfFont for rendering. -
Uses of PdfFont in com.itextpdf.pdfa
Methods in com.itextpdf.pdfa that return PdfFont -
Uses of PdfFont in com.itextpdf.pdfa.checker
Methods in com.itextpdf.pdfa.checker with parameters of type PdfFontModifier and TypeMethodDescriptionvoidabstract voidPerforms a number of checks on the font.voidPdfA1Checker.checkFontGlyphs(PdfFont font, PdfStream contentStream) voidPdfA2Checker.checkFontGlyphs(PdfFont font, PdfStream contentStream) abstract voidPdfAChecker.checkFontGlyphs(PdfFont font, PdfStream contentStream) Performs a check of the each font glyph as a Form XObject.voidVerify the conformity of the text written by the specified font.abstract voidVerify the conformity of the text written by the specified font. -
Uses of PdfFont in com.itextpdf.svg.renderers.impl
Methods in com.itextpdf.svg.renderers.impl with parameters of type PdfFontModifier and TypeMethodDescriptionfloatISvgTextNodeRenderer.getTextContentLength(float parentFontSize, PdfFont font) Deprecated.floatTextLeafSvgNodeRenderer.getTextContentLength(float parentFontSize, PdfFont font) Deprecated.floatTextSvgBranchRenderer.getTextContentLength(float parentFontSize, PdfFont font) Deprecated.