Uses of Class
org.sejda.sambox.pdmodel.font.PDFont
Packages that use PDFont
Package
Description
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
-
Uses of PDFont in org.sejda.sambox.contentstream
Methods in org.sejda.sambox.contentstream with parameters of type PDFontModifier and TypeMethodDescriptionprotected voidPDFStreamEngine.showFontGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) Called when a glyph is to be processed.This method is intended for overriding in subclasses, the default implementation does nothing.protected voidCalled when a glyph is to be processed. -
Uses of PDFont in org.sejda.sambox.pdmodel
Fields in org.sejda.sambox.pdmodel with type parameters of type PDFontModifier and TypeFieldDescriptionprivate final Map<COSName,SoftReference<PDFont>> PDResources.directFontCacheprivate final Map<COSObjectKey,SoftReference<PDFont>> DefaultResourceCache.fontsPDAbstractContentStream.fontStackPDPageContentStream.fontStackMethods in org.sejda.sambox.pdmodel that return PDFontModifier and TypeMethodDescriptionDefaultResourceCache.getFont(COSObjectKey key) Returns the font resource with the given name, or null if none exists.ResourceCache.getFont(COSObjectKey key) Returns the font resource for the given key object, if it is in the cache.Methods in org.sejda.sambox.pdmodel with parameters of type PDFontModifier and TypeMethodDescriptionAdds the given font to the resources of the current page and returns the name for the new resources.voidDefaultResourceCache.put(COSObjectKey key, PDFont font) voidSets the font resource with the given name.voidResourceCache.put(COSObjectKey key, PDFont font) Puts the given key font resource in the cache.voidSet the font and font size to draw text with.voidSet the font and font size to draw text with.Constructor parameters in org.sejda.sambox.pdmodel with type arguments of type PDFontModifierConstructorDescriptionPDResources(COSDictionary resourceDictionary, ResourceCache resourceCache, Map<COSName, SoftReference<PDFont>> directFontCache) Constructor for reading. -
Uses of PDFont in org.sejda.sambox.pdmodel.font
Subclasses of PDFont in org.sejda.sambox.pdmodel.fontModifier and TypeClassDescriptionclassType 1 Multiple Master Font.classA simple font.classTrueType font.classA Composite (Type 0) font.classType 1-equivalent CFF font.classA PostScript Type 1 Font.classA PostScript Type 3 Font.Methods in org.sejda.sambox.pdmodel.font that return PDFontModifier and TypeMethodDescriptionstatic PDFontPDFontFactory.createDefaultFont()Deprecated.static PDFontPDFontFactory.createFont(COSDictionary dictionary) Creates a new PDFont instance with the appropriate subclass.static PDFontPDFontFactory.createFont(COSDictionary dictionary, ResourceCache resourceCache) Creates a new PDFont instance with the appropriate subclass. -
Uses of PDFont in org.sejda.sambox.pdmodel.graphics
Methods in org.sejda.sambox.pdmodel.graphics that return PDFontModifier and TypeMethodDescriptionPDFontSetting.getFont()This will get the font for this font setting.Methods in org.sejda.sambox.pdmodel.graphics with parameters of type PDFont -
Uses of PDFont in org.sejda.sambox.pdmodel.graphics.state
Fields in org.sejda.sambox.pdmodel.graphics.state declared as PDFontMethods in org.sejda.sambox.pdmodel.graphics.state that return PDFontMethods in org.sejda.sambox.pdmodel.graphics.state with parameters of type PDFont -
Uses of PDFont in org.sejda.sambox.pdmodel.interactive.annotation.layout
Fields in org.sejda.sambox.pdmodel.interactive.annotation.layout declared as PDFontMethods in org.sejda.sambox.pdmodel.interactive.annotation.layout that return PDFontModifier and TypeMethodDescription(package private) PDFontAppearanceStyle.getFont()Get the font used for text formatting.Methods in org.sejda.sambox.pdmodel.interactive.annotation.layout with parameters of type PDFontModifier and TypeMethodDescription(package private) floatPlainText.Line.calculateWidth(PDFont font, float fontSize) (package private) List<PlainText.Line>Break the paragraph into individual lines.voidSet the font to be used for text formatting. -
Uses of PDFont in org.sejda.sambox.pdmodel.interactive.form
Fields in org.sejda.sambox.pdmodel.interactive.form declared as PDFontModifier and TypeFieldDescriptionprivate PDFontPDVariableText.appearanceOverrideFontprivate PDFontAppearanceStyle.fontprivate PDFontPDDefaultAppearanceString.fontFields in org.sejda.sambox.pdmodel.interactive.form with type parameters of type PDFontModifier and TypeFieldDescriptionprivate final Map<COSName,SoftReference<PDFont>> PDAcroForm.directFontCacheMethods in org.sejda.sambox.pdmodel.interactive.form that return PDFontModifier and TypeMethodDescriptionPDVariableText.getAppearanceFont()PDVariableText.getAppearanceOverrideFont()(package private) PDFontAppearanceStyle.getFont()Get the font used for text formatting.(package private) PDFontPDDefaultAppearanceString.getFont()Returns the font.Methods in org.sejda.sambox.pdmodel.interactive.form with parameters of type PDFontModifier and TypeMethodDescription(package private) floatAppearanceGeneratorHelper.calculateFontSize(PDFont font, PDRectangle contentRect) My "not so great" method for calculating the fontsize.private floatAppearanceGeneratorHelper.calculateLineHeight(PDFont font, float fontScaleY) (package private) floatPlainText.Line.calculateWidth(PDFont font, float fontSize) (package private) List<PlainText.Line>Break the paragraph into individual lines.private voidAppearanceGeneratorHelper.insertGeneratedCombAppearance(PDPageContentStream contents, PDRectangle bbox, PDFont font, float fontSize) Generate the appearance for comb fields.private voidAppearanceGeneratorHelper.insertGeneratedListboxAppearance(PDPageContentStream contents, PDAppearanceStream appearanceStream, PDRectangle contentRect, PDFont font, float fontSize) private voidAppearanceGeneratorHelper.insertGeneratedListboxSelectionHighlight(PDPageContentStream contents, PDAppearanceStream appearanceStream, PDFont font, float fontSize) private floatAppearanceGeneratorHelper.resolveCapHeight(PDFont font) private floatAppearanceGeneratorHelper.resolveDescent(PDFont font) private floatAppearanceGeneratorHelper.resolveGlyphHeight(PDFont font, int code) voidPDVariableText.setAppearanceOverrideFont(PDFont appearanceOverrideFont) (package private) voidSet the font to be used for text formatting.(package private) voidSet the font. -
Uses of PDFont in org.sejda.sambox.rendering
Fields in org.sejda.sambox.rendering declared as PDFontFields in org.sejda.sambox.rendering with type parameters of type PDFontMethods in org.sejda.sambox.rendering with parameters of type PDFontModifier and TypeMethodDescriptionprivate Glyph2DPageDrawer.createGlyph2D(PDFont font) Provide a Glyph2D for the given font.private voidPageDrawer.drawGlyph2D(Glyph2D glyph2D, PDFont font, int code, Vector displacement, AffineTransform at) Render the font using the Glyph2D interface.protected voidPageDrawer.showFontGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) Constructors in org.sejda.sambox.rendering with parameters of type PDFontModifierConstructorDescriptionprivateTTFGlyph2D(org.apache.fontbox.ttf.TrueTypeFont ttf, PDFont font, boolean isCIDFont) -
Uses of PDFont in org.sejda.sambox.text
Fields in org.sejda.sambox.text declared as PDFontMethods in org.sejda.sambox.text that return PDFontModifier and TypeMethodDescriptionTextPosition.getFont()This will get the font for the text being drawn.Methods in org.sejda.sambox.text with parameters of type PDFontModifier and TypeMethodDescriptionprotected floatPDFTextStreamEngine.computeFontHeight(PDFont font) Compute the font height.protected voidPDFTextStreamEngine.showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) Called when a glyph is to be processed.Constructors in org.sejda.sambox.text with parameters of type PDFontModifierConstructorDescriptionTextPosition(int pageRotation, float pageWidth, float pageHeight, Matrix textMatrix, float endX, float endY, float maxHeight, float individualWidth, float spaceWidth, String unicode, int[] charCodes, PDFont font, float fontSize, int fontSizeInPt) TextPosition(int pageRotation, float pageWidth, float pageHeight, Matrix textMatrix, float endX, float endY, float maxHeight, float individualWidth, float spaceWidth, String unicode, int[] charCodes, PDFont font, float fontSize, int fontSizeInPt, PDColor color, RenderingMode renderingMode) Constructor.
PDType1Font.HELVETICA