Uses of Class
com.itextpdf.kernel.font.PdfFont
-
-
Uses of PdfFont in com.itextpdf.barcodes
Fields in com.itextpdf.barcodes declared as PdfFont Modifier and Type Field Description protected PdfFontBarcode1D. fontThe text font.Methods in com.itextpdf.barcodes that return PdfFont Modifier and Type Method Description PdfFontBarcode1D. getFont()Gets the text font.Methods in com.itextpdf.barcodes with parameters of type PdfFont Modifier and Type Method Description voidBarcode1D. setFont(PdfFont font)Sets the text font.Constructors in com.itextpdf.barcodes with parameters of type PdfFont Constructor Description Barcode128(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 PdfFont Modifier and Type Field Description protected PdfFontAbstractPdfFormField. fontprivate PdfFontTerminalFormFieldBuilder. fontMethods in com.itextpdf.forms.fields that return PdfFont Modifier and Type Method Description PdfFontAbstractPdfFormField. getFont()Gets the current font of the form field.PdfFontTerminalFormFieldBuilder. getFont()Get font to be used for form field creation.private PdfFontAbstractPdfFormField. resolveFontName(java.lang.String fontName)Methods in com.itextpdf.forms.fields with parameters of type PdfFont Modifier and Type Method Description AbstractPdfFormFieldAbstractPdfFormField. setFont(PdfFont font)Basic setter for thefontproperty.TTerminalFormFieldBuilder. setFont(PdfFont font)Set font to be used for form field creation.AbstractPdfFormFieldAbstractPdfFormField. setFontAndSize(PdfFont font, float fontSize)Combined setter for thefontandfontSizeproperties.PdfFormFieldPdfFormField. setValue(java.lang.String value, PdfFont font, float fontSize)Set text field value with given font and size.(package private) voidAbstractPdfFormField. updateFontAndFontSize(PdfFont font, float fontSize)(package private) voidPdfFormField. updateFontAndFontSize(PdfFont font, float fontSize) -
Uses of PdfFont in com.itextpdf.forms.form.renderer
Fields in com.itextpdf.forms.form.renderer declared as PdfFont Modifier and Type Field Description protected PdfFontAbstractTextFieldRenderer. fontThe font to be used for the text.Methods in com.itextpdf.forms.form.renderer with parameters of type PdfFont Modifier and Type Method Description protected TextRendererFormFieldValueNonTrimmingTextRenderer. createCopy(GlyphLine gl, PdfFont font) -
Uses of PdfFont in com.itextpdf.forms.form.renderer.checkboximpl
Methods in com.itextpdf.forms.form.renderer.checkboximpl that return PdfFont Modifier and Type Method Description private PdfFontPdfCheckBoxRenderingStrategy. loadFontContainingSymbols()Methods in com.itextpdf.forms.form.renderer.checkboximpl with parameters of type PdfFont Modifier and Type Method Description private floatPdfCheckBoxRenderingStrategy. calculateFontSize(CheckBoxRenderer checkBoxRenderer, PdfFont fontContainingSymbols, java.lang.String text, Rectangle rectangle, float borderWidth)private voidPdfCheckBoxRenderingStrategy. drawZapfdingbatsIcon(PdfFont fontContainingSymbols, java.lang.String text, float fontSize, Rectangle rectangle, PdfCanvas canvas) -
Uses of PdfFont in com.itextpdf.forms.util
Methods in com.itextpdf.forms.util with parameters of type PdfFont Modifier and Type Method Description static floatFontSizeUtil. approximateFontSizeToFitSingleLine(PdfFont localFont, Rectangle bBox, java.lang.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.font Modifier and Type Class Description classPdfSimpleFont<T extends FontProgram>classPdfTrueTypeFontNote.classPdfType0FontclassPdfType1FontclassPdfType3FontLow-level API class for Type 3 fonts.Methods in com.itextpdf.kernel.font that return PdfFont Modifier and Type Method Description static 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, java.lang.String encoding)Created aPdfFontinstance by the bytes of the underlying font program.static PdfFontPdfFontFactory. createFont(byte[] fontProgram, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy)Created aPdfFontinstance by the bytes of the underlying font program.static PdfFontPdfFontFactory. createFont(byte[] fontProgram, java.lang.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, java.lang.String encoding)Created aPdfFontinstance given the given underlyingFontPrograminstance.static PdfFontPdfFontFactory. createFont(FontProgram fontProgram, java.lang.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(java.lang.String fontProgram)Creates aPdfFontinstance by the path of the font program filestatic PdfFontPdfFontFactory. createFont(java.lang.String fontProgram, PdfFontFactory.EmbeddingStrategy embeddingStrategy)Created aPdfFontinstance given the path to the font file.static PdfFontPdfFontFactory. createFont(java.lang.String fontProgram, java.lang.String encoding)Creates aPdfFontinstance by the path of the font program file and given encoding.static PdfFontPdfFontFactory. createFont(java.lang.String fontProgram, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy)Created aPdfFontinstance given the path to the font file.static PdfFontPdfFontFactory. createFont(java.lang.String fontProgram, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached)Created aPdfFontinstance given the path to the font file.static PdfFontPdfFontFactory. createFont(java.lang.String fontProgram, java.lang.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(java.lang.String fontProgram, java.lang.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(java.lang.String fontName)CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory. createRegisteredFont(java.lang.String fontName, java.lang.String encoding)CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory. createRegisteredFont(java.lang.String fontName, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy)CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory. createRegisteredFont(java.lang.String fontName, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached)CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory. createRegisteredFont(java.lang.String fontName, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, int style)CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory. createRegisteredFont(java.lang.String fontName, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, int style, boolean cached)CreatesPdfFontbased on registeredFontProgram's.static PdfFontPdfFontFactory. createTtcFont(byte[] ttc, int ttcIndex, java.lang.String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached)Creates aPdfFontinstance from the TrueType Collection represented by its byte contents.static PdfFontPdfFontFactory. createTtcFont(java.lang.String ttc, int ttcIndex, java.lang.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
Fields in com.itextpdf.kernel.pdf declared as PdfFont Modifier and Type Field Description private PdfFontDefaultFontStrategy. defaultFontFields in com.itextpdf.kernel.pdf with type parameters of type PdfFont Modifier and Type Field Description private java.util.Map<PdfIndirectReference,PdfFont>PdfDocument. documentFontsMethods in com.itextpdf.kernel.pdf that return PdfFont Modifier and Type Method Description PdfFontPdfDocument. addFont(PdfFont font)Adds aPdfFontinstance to this document so that this font is flushed automatically on document close.PdfFontPdfDocument. findFont(java.lang.String fontProgram, java.lang.String encoding)FindPdfFontfrom loaded fonts with corresponding fontProgram and encoding or CMAP.PdfFontPdfDocument. getDefaultFont()Gets default font for the document: Helvetica, WinAnsi.PdfFontDefaultFontStrategy. getFont()Gets default font.PdfFontPdfDocument. 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 PdfFont Modifier and Type Method Description protected java.util.Collection<PdfFont>PdfDocument. getDocumentFonts()List all newly added or loaded fontsMethods in com.itextpdf.kernel.pdf with parameters of type PdfFont Modifier and Type Method Description booleanPdfTextArray. add(java.lang.String text, PdfFont font)PdfFontPdfDocument. addFont(PdfFont font)Adds aPdfFontinstance to this document so that this font is flushed automatically on document close.PdfNamePdfResources. 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 PdfFont Modifier and Type Method Description PdfTrapNetworkAnnotationPdfTrapNetworkAnnotation. setFauxedFonts(java.util.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
Fields in com.itextpdf.kernel.pdf.canvas declared as PdfFont Modifier and Type Field Description private PdfFontCanvasGraphicsState. fontMethods in com.itextpdf.kernel.pdf.canvas that return PdfFont Modifier and Type Method Description PdfFontCanvasGraphicsState. getFont()Gets the currentPdfFont.Methods in com.itextpdf.kernel.pdf.canvas with parameters of type PdfFont Modifier and Type Method Description voidCanvasGraphicsState. setFont(PdfFont font)Sets the currentPdfFont.PdfCanvasPdfCanvas. setFontAndSize(PdfFont font, float size)Sets font and size (PDF Tf operator). -
Uses of PdfFont in com.itextpdf.kernel.pdf.canvas.parser
Fields in com.itextpdf.kernel.pdf.canvas.parser with type parameters of type PdfFont Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.lang.ref.WeakReference<PdfFont>>PdfCanvasProcessor. cachedFontsThe font cacheMethods in com.itextpdf.kernel.pdf.canvas.parser that return PdfFont Modifier and Type Method Description protected 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 Modifier and Type Method Description PdfFontTextRenderInfo. getFont()Getter for the font -
Uses of PdfFont in com.itextpdf.kernel.utils.checkers
Methods in com.itextpdf.kernel.utils.checkers with parameters of type PdfFont Modifier and Type Method Description booleanFontCheckUtil.CharacterChecker. check(int ch, PdfFont font)Checks passed symbol against the fontstatic intFontCheckUtil. checkGlyphsOfText(java.lang.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
Fields in com.itextpdf.kernel.validation.context declared as PdfFont Modifier and Type Field Description private PdfFontFontValidationContext. fontFields in com.itextpdf.kernel.validation.context with type parameters of type PdfFont Modifier and Type Field Description private java.util.Collection<PdfFont>PdfDocumentValidationContext. documentFontsMethods in com.itextpdf.kernel.validation.context that return PdfFont Modifier and Type Method Description PdfFontFontValidationContext. getFont()Gets the font.Methods in com.itextpdf.kernel.validation.context that return types with arguments of type PdfFont Modifier and Type Method Description java.util.Collection<PdfFont>PdfDocumentValidationContext. getDocumentFonts()Gets the document fonts.Constructors in com.itextpdf.kernel.validation.context with parameters of type PdfFont Constructor Description FontValidationContext(java.lang.String text, PdfFont font)Instantiates a newFontValidationContextbased on text and font.Constructor parameters in com.itextpdf.kernel.validation.context with type arguments of type PdfFont Constructor Description PdfDocumentValidationContext(PdfDocument pdfDocument, java.util.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 PdfFont Modifier and Type Field Description protected PdfFontRootElement. defaultFontMethods in com.itextpdf.layout with parameters of type PdfFont Modifier and Type Method Description TElementPropertyContainer. setFont(PdfFont font)Sets the font of this Element. -
Uses of PdfFont in com.itextpdf.layout.font
Fields in com.itextpdf.layout.font with type parameters of type PdfFont Modifier and Type Field Description protected java.util.Map<FontInfo,PdfFont>FontProvider. pdfFontsMethods in com.itextpdf.layout.font that return PdfFont Modifier and Type Method Description PdfFontFontProvider. getPdfFont(FontInfo fontInfo)Get from cache or create a new instance ofPdfFont.PdfFontFontProvider. 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 PdfFont Modifier and Type Method Description private static PdfFontAbstractFontSelectorStrategy. getPdfFont(FontInfo fontInfo, FontProvider fontProvider, FontSet additionalFonts)Utility method to create PdfFont.protected 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 PdfFont Modifier and Type Method Description java.util.List<Tuple2<GlyphLine,PdfFont>>AbstractFontSelectorStrategy. getGlyphLines(java.lang.String text)Converts text into glyphs with the best matching font.java.util.List<Tuple2<GlyphLine,PdfFont>>IFontSelectorStrategy. getGlyphLines(java.lang.String text)Converts text into glyphs with the best matching font. -
Uses of PdfFont in com.itextpdf.layout.renderer
Fields in com.itextpdf.layout.renderer declared as PdfFont Modifier and Type Field Description private PdfFontTextRenderer. fontMethods in com.itextpdf.layout.renderer that return PdfFont Modifier and Type Method Description PdfFontAbstractRenderer. 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.(package private) PdfFontAbstractRenderer. resolveFirstPdfFont()Gets any validPdfFontfor this renderer, based onProperty.FONT,Property.FONT_PROVIDERandProperty.FONT_SETproperties.(package private) PdfFontAbstractRenderer. resolveFirstPdfFont(java.lang.String[] font, FontProvider provider, FontCharacteristics fc, FontSet additionalFonts)Get first validPdfFontfor this renderer, based on given font-families, font provider and font characteristics.(package private) PdfFontTextRenderer. resolveFirstPdfFont(java.lang.String[] font, FontProvider provider, FontCharacteristics fc, FontSet additionalFonts)Methods in com.itextpdf.layout.renderer with parameters of type PdfFont Modifier and Type Method Description static 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)voidTextRenderer. setText(GlyphLine text, PdfFont font)Manually set a GlyphLine and PdfFont for rendering. -
Uses of PdfFont in com.itextpdf.pdfa
Methods in com.itextpdf.pdfa that return PdfFont Modifier and Type Method Description PdfFontPdfADefaultFontStrategy. getFont()Gets default font. -
Uses of PdfFont in com.itextpdf.pdfa.checker
Methods in com.itextpdf.pdfa.checker with parameters of type PdfFont Modifier and Type Method Description booleanPdfA1Checker.ACharacterChecker. check(int ch, PdfFont font)voidPdfA1Checker. checkFont(PdfFont pdfFont)abstract voidPdfAChecker. checkFont(PdfFont pdfFont)Performs 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.voidPdfA1Checker. checkText(java.lang.String text, PdfFont font)Verify the conformity of the text written by the specified font.abstract voidPdfAChecker. checkText(java.lang.String text, PdfFont font)Verify the conformity of the text written by the specified font. -
Uses of PdfFont in com.itextpdf.pdfua.checkers
Methods in com.itextpdf.pdfua.checkers with parameters of type PdfFont Modifier and Type Method Description booleanPdfUAChecker.UaCharacterChecker. check(int ch, PdfFont font)(package private) voidPdfUAChecker. checkText(java.lang.String str, PdfFont font)Checks that embedded fonts define all glyphs referenced for rendering within the conforming file.Method parameters in com.itextpdf.pdfua.checkers with type arguments of type PdfFont Modifier and Type Method Description (package private) voidPdfUAChecker. checkFonts(java.util.Collection<PdfFont> fontsInDocument)Checks that font programs for all fonts used for rendering within a conforming file, as determined by whether at least one of its glyphs is referenced from one or more content streams, are embedded within that file, as defined in ISO 32000-2:2020, 9.9 and ISO 32000-1:2008, 9.9. -
Uses of PdfFont in com.itextpdf.svg.renderers.impl
Methods in com.itextpdf.svg.renderers.impl with parameters of type PdfFont Modifier and Type Method Description floatISvgTextNodeRenderer. getTextContentLength(float parentFontSize, PdfFont font)Deprecated.floatTextLeafSvgNodeRenderer. getTextContentLength(float parentFontSize, PdfFont font)Deprecated.floatTextSvgBranchRenderer. getTextContentLength(float parentFontSize, PdfFont font)Deprecated.
-