Uses of Class
org.apache.fontbox.ttf.TrueTypeFont
Packages that use TrueTypeFont
Package
Description
This package contains classes to parse a TTF file.
The PDModel package represents a high level API for creating and manipulating PDF documents.
Classes to deal with font functionality in a PDF Document.
-
Uses of TrueTypeFont in org.apache.fontbox.ttf
Subclasses of TrueTypeFont in org.apache.fontbox.ttfFields in org.apache.fontbox.ttf declared as TrueTypeFontModifier and TypeFieldDescriptionprotected final TrueTypeFont
TTFTable.font
The font which contains this table.private final TrueTypeFont
CFFTable.CFFBytesource.ttf
private final TrueTypeFont
TTFSubsetter.ttf
Methods in org.apache.fontbox.ttf that return TrueTypeFontModifier and TypeMethodDescriptionprivate TrueTypeFont
TrueTypeCollection.getFontAtIndex
(int idx) TrueTypeCollection.getFontByName
(String name) Get a TT font from a collection.(package private) TrueTypeFont
TTFParser.newFont
(TTFDataStream raf) Parse a file and return a TrueType font.TTFParser.parse
(InputStream inputStream) Parse an input stream and return a TrueType font.Parse a file and return a TrueType font.(package private) TrueTypeFont
TTFParser.parse
(TTFDataStream raf) Parse a file and get a true type font.TTFParser.parseEmbedded
(InputStream inputStream) Parse an input stream and return a TrueType font that is to be embedded.Methods in org.apache.fontbox.ttf with parameters of type TrueTypeFontModifier and TypeMethodDescription(package private) void
NameRecord.initData
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.private void
TTFParser.parseTables
(TrueTypeFont font) Parse all tables and check if all needed tables are present.void
TrueTypeCollection.TrueTypeFontProcessor.process
(TrueTypeFont ttf) (package private) void
CFFTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
CmapTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
GlyphSubstitutionTable.read
(TrueTypeFont ttf, TTFDataStream data) (package private) void
GlyphTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
HeaderTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
HorizontalHeaderTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
HorizontalMetricsTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
IndexToLocationTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
KerningTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
MaximumProfileTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
NamingTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
OS2WindowsMetricsTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
PostScriptTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
TTFTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
VerticalHeaderTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
VerticalMetricsTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) void
VerticalOriginTable.read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.protected TTFTable
OTFParser.readTable
(TrueTypeFont font, String tag) protected TTFTable
TTFParser.readTable
(TrueTypeFont font, String tag) private TTFTable
TTFParser.readTableDirectory
(TrueTypeFont font, TTFDataStream raf) Constructors in org.apache.fontbox.ttf with parameters of type TrueTypeFontModifierConstructorDescription(package private)
(package private)
CFFTable
(TrueTypeFont font) (package private)
CmapTable
(TrueTypeFont font) (package private)
(package private)
(package private)
GlyphTable
(TrueTypeFont font) (package private)
HeaderTable
(TrueTypeFont font) (package private)
(package private)
(package private)
(package private)
KerningTable
(TrueTypeFont font) (package private)
(package private)
NamingTable
(TrueTypeFont font) (package private)
(package private)
OTLTable
(TrueTypeFont font) (package private)
PostScriptTable
(TrueTypeFont font) TTFSubsetter
(TrueTypeFont ttf) Creates a subsetter for the given font.TTFSubsetter
(TrueTypeFont ttf, List<String> tables) Creates a subsetter for the given font.(package private)
TTFTable
(TrueTypeFont font) Constructor.(package private)
(package private)
(package private)
-
Uses of TrueTypeFont in org.apache.pdfbox.pdmodel
Fields in org.apache.pdfbox.pdmodel with type parameters of type TrueTypeFontMethods in org.apache.pdfbox.pdmodel with parameters of type TrueTypeFontModifier and TypeMethodDescriptionvoid
PDDocument.registerTrueTypeFontForClosing
(TrueTypeFont ttf) For internal PDFBox use when creating PDF documents: register a TrueTypeFont to make sure it is closed when the PDDocument is closed to avoid memory leaks. -
Uses of TrueTypeFont in org.apache.pdfbox.pdmodel.font
Fields in org.apache.pdfbox.pdmodel.font declared as TrueTypeFontModifier and TypeFieldDescriptionprivate final TrueTypeFont
FontMapperImpl.lastResortFont
private final TrueTypeFont
PDCIDFontType2.ttf
private final TrueTypeFont
PDTrueTypeFont.ttf
private TrueTypeFont
PDType0Font.ttf
protected TrueTypeFont
TrueTypeEmbedder.ttf
Methods in org.apache.pdfbox.pdmodel.font that return TrueTypeFontModifier and TypeMethodDescriptionprivate TrueTypeFont
PDCIDFontType2.findFontOrSubstitute()
private TrueTypeFont
FileSystemFontProvider.FSFontInfo.getTrueTypeFont
(String postScriptName, File file) PDCIDFontType2.getTrueTypeFont()
Returns the embedded or substituted TrueType font.PDTrueTypeFont.getTrueTypeFont()
Returns the embedded or substituted TrueType font.TrueTypeEmbedder.getTrueTypeFont()
Deprecated.private TrueTypeFont
FileSystemFontProvider.FSFontInfo.readTrueTypeFont
(String postScriptName, File file) Methods in org.apache.pdfbox.pdmodel.font that return types with arguments of type TrueTypeFontModifier and TypeMethodDescriptionFontMapper.getTrueTypeFont
(String baseFont, PDFontDescriptor fontDescriptor) Finds a TrueType font with the given PostScript name, or a suitable substitute, or null.FontMapperImpl.getTrueTypeFont
(String baseFont, PDFontDescriptor fontDescriptor) Finds a TrueType font with the given PostScript name, or a suitable substitute, or null.Methods in org.apache.pdfbox.pdmodel.font with parameters of type TrueTypeFontModifier and TypeMethodDescriptionprivate void
FileSystemFontProvider.addTrueTypeFontImpl
(TrueTypeFont ttf, File file) Adds an OTF or TTF font to the file cache.private PDFontDescriptor
TrueTypeEmbedder.createFontDescriptor
(TrueTypeFont ttf) Creates a new font descriptor dictionary for the given TTF.(package private) boolean
TrueTypeEmbedder.isEmbeddingPermitted
(TrueTypeFont ttf) Returns true if the fsType in the OS/2 table permits embedding.private boolean
TrueTypeEmbedder.isSubsettingPermitted
(TrueTypeFont ttf) Returns true if the fsType in the OS/2 table permits subsetting.static PDTrueTypeFont
PDTrueTypeFont.load
(PDDocument doc, TrueTypeFont ttf, Encoding encoding) Loads a TTF to be embedded into a document as a simple font.static PDType0Font
PDType0Font.load
(PDDocument doc, TrueTypeFont ttf, boolean embedSubset) Loads a TTF to be embedded into a document as a Type 0 font.static PDType0Font
PDType0Font.loadVertical
(PDDocument doc, TrueTypeFont ttf, boolean embedSubset) Loads a TTF to be embedded into a document as a vertical Type 0 font.Constructors in org.apache.pdfbox.pdmodel.font with parameters of type TrueTypeFontModifierConstructorDescriptionPDCIDFontType2
(COSDictionary fontDictionary, PDType0Font parent, TrueTypeFont trueTypeFont) Constructor.(package private)
PDCIDFontType2Embedder
(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset, PDType0Font parent, boolean vertical) Creates a new TrueType font embedder for the given TTF as a PDCIDFontType2.private
PDTrueTypeFont
(PDDocument document, TrueTypeFont ttf, Encoding encoding, boolean closeTTF) Creates a new TrueType font for embedding.(package private)
PDTrueTypeFontEmbedder
(PDDocument document, COSDictionary dict, TrueTypeFont ttf, Encoding encoding) Creates a new TrueType font embedder for the given TTF as a PDTrueTypeFont.private
PDType0Font
(PDDocument document, TrueTypeFont ttf, boolean embedSubset, boolean closeTTF, boolean vertical) Private.(package private)
TrueTypeEmbedder
(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset) Creates a new TrueType font for embedding. -
Uses of TrueTypeFont in org.apache.pdfbox.rendering
Fields in org.apache.pdfbox.rendering declared as TrueTypeFontConstructors in org.apache.pdfbox.rendering with parameters of type TrueTypeFontModifierConstructorDescriptionprivate
TTFGlyph2D
(TrueTypeFont ttf, PDFont font, boolean isCIDFont)