Uses of Class
org.apache.pdfbox.pdmodel.font.PDFont
Packages that use PDFont
Package
Description
This package contains provides classes for working with content streams.
The PDModel package represents a high level API for creating and manipulating PDF documents.
Classes to deal with font functionality in a PDF Document.
The PDModel graphics package deals with graphics states, operations, and parameters within the PDF document.
This package deals with graphics states within the PDF document.
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
-
Uses of PDFont in org.apache.pdfbox.contentstream
Methods in org.apache.pdfbox.contentstream with parameters of type PDFontModifier and TypeMethodDescriptionprotected void
PDFStreamEngine.showFontGlyph
(Matrix textRenderingMatrix, PDFont font, int code, String unicode, Vector displacement) Deprecated.protected void
PDFStreamEngine.showFontGlyph
(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) Called when a glyph is to be processed.protected void
PDFStreamEngine.showGlyph
(Matrix textRenderingMatrix, PDFont font, int code, String unicode, Vector displacement) Deprecated.protected void
Called when a glyph is to be processed. -
Uses of PDFont in org.apache.pdfbox.debugger.fontencodingpane
Methods in org.apache.pdfbox.debugger.fontencodingpane with parameters of type PDFontModifier and TypeMethodDescriptionprivate Object[][]
Type0Font.readCIDToGIDMap
(PDCIDFont font, PDFont parentFont) -
Uses of PDFont in org.apache.pdfbox.pdmodel
Fields in org.apache.pdfbox.pdmodel with type parameters of type PDFontModifier and TypeFieldDescriptionprivate final Map<COSName,
SoftReference<PDFont>> PDResources.directFontCache
private final Map<COSObject,
SoftReference<PDFont>> DefaultResourceCache.fonts
PDAbstractContentStream.fontStack
PDPageContentStream.fontStack
PDDocument.fontsToSubset
Methods in org.apache.pdfbox.pdmodel that return PDFontModifier and TypeMethodDescriptionReturns the font resource with the given name, or null if none exists.Returns the font resource for the given indirect object, if it is in the cache.Methods in org.apache.pdfbox.pdmodel that return types with arguments of type PDFontModifier and TypeMethodDescriptionPDDocument.getFontsToSubset()
Returns the list of fonts which will be subset before the document is saved.Methods in org.apache.pdfbox.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.void
void
Sets the font resource with the given name.void
Puts the given indirect font resource in the cache.void
Set the font and font size to draw text with.void
Set the font and font size to draw text with.Constructor parameters in org.apache.pdfbox.pdmodel with type arguments of type PDFontModifierConstructorDescriptionPDResources
(COSDictionary resourceDictionary, ResourceCache resourceCache, Map<COSName, SoftReference<PDFont>> directFontCache) Constructor for reading. -
Uses of PDFont in org.apache.pdfbox.pdmodel.font
Subclasses of PDFont in org.apache.pdfbox.pdmodel.fontModifier and TypeClassDescriptionclass
Type 1 Multiple Master Font.class
A simple font.class
TrueType font.class
A Composite (Type 0) font.class
Type 1-equivalent CFF font.class
A PostScript Type 1 Font.class
A PostScript Type 3 Font.Methods in org.apache.pdfbox.pdmodel.font that return PDFontModifier and TypeMethodDescriptionstatic PDFont
PDFontFactory.createDefaultFont()
Deprecated.static PDFont
PDFontFactory.createFont
(COSDictionary dictionary) Creates a new PDFont instance with the appropriate subclass.static PDFont
PDFontFactory.createFont
(COSDictionary dictionary, ResourceCache resourceCache) Creates a new PDFont instance with the appropriate subclass. -
Uses of PDFont in org.apache.pdfbox.pdmodel.graphics
Methods in org.apache.pdfbox.pdmodel.graphics that return PDFontModifier and TypeMethodDescriptionPDFontSetting.getFont()
This will get the font for this font setting.Methods in org.apache.pdfbox.pdmodel.graphics with parameters of type PDFont -
Uses of PDFont in org.apache.pdfbox.pdmodel.graphics.state
Fields in org.apache.pdfbox.pdmodel.graphics.state declared as PDFontMethods in org.apache.pdfbox.pdmodel.graphics.state that return PDFontMethods in org.apache.pdfbox.pdmodel.graphics.state with parameters of type PDFont -
Uses of PDFont in org.apache.pdfbox.pdmodel.interactive.annotation.layout
Fields in org.apache.pdfbox.pdmodel.interactive.annotation.layout declared as PDFontMethods in org.apache.pdfbox.pdmodel.interactive.annotation.layout that return PDFontModifier and TypeMethodDescription(package private) PDFont
AppearanceStyle.getFont()
Get the font used for text formatting.Methods in org.apache.pdfbox.pdmodel.interactive.annotation.layout with parameters of type PDFontModifier and TypeMethodDescription(package private) float
PlainText.Line.calculateWidth
(PDFont font, float fontSize) (package private) List<PlainText.Line>
Break the paragraph into individual lines.void
Set the font to be used for text formatting. -
Uses of PDFont in org.apache.pdfbox.pdmodel.interactive.form
Fields in org.apache.pdfbox.pdmodel.interactive.form declared as PDFontModifier and TypeFieldDescriptionprivate PDFont
AppearanceStyle.font
private PDFont
PDDefaultAppearanceString.font
Fields in org.apache.pdfbox.pdmodel.interactive.form with type parameters of type PDFontModifier and TypeFieldDescriptionprivate final Map<COSName,
SoftReference<PDFont>> PDAcroForm.directFontCache
Methods in org.apache.pdfbox.pdmodel.interactive.form that return PDFontModifier and TypeMethodDescription(package private) PDFont
AppearanceStyle.getFont()
Get the font used for text formatting.(package private) PDFont
PDDefaultAppearanceString.getFont()
Returns the font.Methods in org.apache.pdfbox.pdmodel.interactive.form with parameters of type PDFontModifier and TypeMethodDescriptionprivate float
AppearanceGeneratorHelper.calculateFontSize
(PDFont font, PDRectangle contentRect) My "not so great" method for calculating the fontsize.(package private) float
PlainText.Line.calculateWidth
(PDFont font, float fontSize) (package private) List<PlainText.Line>
Break the paragraph into individual lines.private void
AppearanceGeneratorHelper.insertGeneratedCombAppearance
(PDPageContentStream contents, PDAppearanceStream appearanceStream, PDFont font, float fontSize) Generate the appearance for comb fields.private void
AppearanceGeneratorHelper.insertGeneratedListboxAppearance
(PDPageContentStream contents, PDAppearanceStream appearanceStream, PDRectangle contentRect, PDFont font, float fontSize) private void
AppearanceGeneratorHelper.insertGeneratedListboxSelectionHighlight
(PDPageContentStream contents, PDAppearanceStream appearanceStream, PDFont font, float fontSize) private float
AppearanceGeneratorHelper.resolveCapHeight
(PDFont font) private float
AppearanceGeneratorHelper.resolveDescent
(PDFont font) private float
AppearanceGeneratorHelper.resolveGlyphHeight
(PDFont font, int code) (package private) void
Set the font to be used for text formatting.(package private) void
Set the font. -
Uses of PDFont in org.apache.pdfbox.preflight.font
Fields in org.apache.pdfbox.preflight.font declared as PDFontMethods in org.apache.pdfbox.preflight.font with parameters of type PDFontConstructors in org.apache.pdfbox.preflight.font with parameters of type PDFont -
Uses of PDFont in org.apache.pdfbox.preflight.font.container
Constructors in org.apache.pdfbox.preflight.font.container with parameters of type PDFont -
Uses of PDFont in org.apache.pdfbox.preflight.process.reflect
Methods in org.apache.pdfbox.preflight.process.reflect that return types with arguments of type PDFontModifier and TypeMethodDescriptionResourcesValidationProcess.getFonts
(COSDictionary resources, PreflightContext context) This will get the map of fonts.protected FontValidator<? extends FontContainer<? extends PDFont>>
FontValidationProcess.getFontValidator
(PreflightContext context, PDFont font) Create the right "Validator" object for the given font typeMethods in org.apache.pdfbox.preflight.process.reflect with parameters of type PDFontModifier and TypeMethodDescriptionprotected FontValidator<? extends FontContainer<? extends PDFont>>
FontValidationProcess.getFontValidator
(PreflightContext context, PDFont font) Create the right "Validator" object for the given font type -
Uses of PDFont in org.apache.pdfbox.rendering
Fields in org.apache.pdfbox.rendering declared as PDFontFields in org.apache.pdfbox.rendering with type parameters of type PDFontMethods in org.apache.pdfbox.rendering with parameters of type PDFontModifier and TypeMethodDescriptionprivate Glyph2D
PageDrawer.createGlyph2D
(PDFont font) Provide a Glyph2D for the given font.private void
PageDrawer.drawGlyph2D
(Glyph2D glyph2D, PDFont font, int code, Vector displacement, AffineTransform at) Render the font using the Glyph2D interface.protected void
PageDrawer.showFontGlyph
(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) Constructors in org.apache.pdfbox.rendering with parameters of type PDFontModifierConstructorDescriptionprivate
TTFGlyph2D
(TrueTypeFont ttf, PDFont font, boolean isCIDFont) -
Uses of PDFont in org.apache.pdfbox.text
Fields in org.apache.pdfbox.text declared as PDFontMethods in org.apache.pdfbox.text that return PDFontModifier and TypeMethodDescriptionTextPosition.getFont()
This will get the font for the text being drawn.Methods in org.apache.pdfbox.text with parameters of type PDFontModifier and TypeMethodDescriptionprotected float
LegacyPDFStreamEngine.computeFontHeight
(PDFont font) Compute the font height.protected void
LegacyPDFStreamEngine.showGlyph
(Matrix textRenderingMatrix, PDFont font, int code, String unicode, Vector displacement) Called when a glyph is to be processed.Constructors in org.apache.pdfbox.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) Constructor. -
Uses of PDFont in org.apache.pdfbox.tools
Fields in org.apache.pdfbox.tools declared as PDFontMethods in org.apache.pdfbox.tools that return PDFontMethods in org.apache.pdfbox.tools with parameters of type PDFont
PDFStreamEngine.showFontGlyph(Matrix, PDFont, int, Vector)
instead