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 TrueTypeFontTTFTable.fontThe font which contains this table.private final TrueTypeFontCFFTable.CFFBytesource.ttfprivate final TrueTypeFontTTFSubsetter.ttfMethods in org.apache.fontbox.ttf that return TrueTypeFontModifier and TypeMethodDescriptionprivate TrueTypeFontTrueTypeCollection.getFontAtIndex(int idx) TrueTypeCollection.getFontByName(String name) Get a TT font from a collection.(package private) TrueTypeFontTTFParser.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) TrueTypeFontTTFParser.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) voidNameRecord.initData(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.private voidTTFParser.parseTables(TrueTypeFont font) Parse all tables and check if all needed tables are present.voidTrueTypeCollection.TrueTypeFontProcessor.process(TrueTypeFont ttf) (package private) voidCFFTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidCmapTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidGlyphSubstitutionTable.read(TrueTypeFont ttf, TTFDataStream data) (package private) voidGlyphTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidHeaderTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidHorizontalHeaderTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidHorizontalMetricsTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidIndexToLocationTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidKerningTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidMaximumProfileTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidNamingTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidOS2WindowsMetricsTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidPostScriptTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidTTFTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidVerticalHeaderTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidVerticalMetricsTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.(package private) voidVerticalOriginTable.read(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.protected TTFTableOTFParser.readTable(TrueTypeFont font, String tag) protected TTFTableTTFParser.readTable(TrueTypeFont font, String tag) private TTFTableTTFParser.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 TypeMethodDescriptionvoidPDDocument.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 TrueTypeFontFontMapperImpl.lastResortFontprivate final TrueTypeFontPDCIDFontType2.ttfprivate final TrueTypeFontPDTrueTypeFont.ttfprivate TrueTypeFontPDType0Font.ttfprotected TrueTypeFontTrueTypeEmbedder.ttfMethods in org.apache.pdfbox.pdmodel.font that return TrueTypeFontModifier and TypeMethodDescriptionprivate TrueTypeFontPDCIDFontType2.findFontOrSubstitute()private TrueTypeFontFileSystemFontProvider.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 TrueTypeFontFileSystemFontProvider.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 voidFileSystemFontProvider.addTrueTypeFontImpl(TrueTypeFont ttf, File file) Adds an OTF or TTF font to the file cache.private PDFontDescriptorTrueTypeEmbedder.createFontDescriptor(TrueTypeFont ttf) Creates a new font descriptor dictionary for the given TTF.(package private) booleanTrueTypeEmbedder.isEmbeddingPermitted(TrueTypeFont ttf) Returns true if the fsType in the OS/2 table permits embedding.private booleanTrueTypeEmbedder.isSubsettingPermitted(TrueTypeFont ttf) Returns true if the fsType in the OS/2 table permits subsetting.static PDTrueTypeFontPDTrueTypeFont.load(PDDocument doc, TrueTypeFont ttf, Encoding encoding) Loads a TTF to be embedded into a document as a simple font.static PDType0FontPDType0Font.load(PDDocument doc, TrueTypeFont ttf, boolean embedSubset) Loads a TTF to be embedded into a document as a Type 0 font.static PDType0FontPDType0Font.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.privatePDTrueTypeFont(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.privatePDType0Font(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 TrueTypeFontModifierConstructorDescriptionprivateTTFGlyph2D(TrueTypeFont ttf, PDFont font, boolean isCIDFont)