Uses of Class
org.apache.fontbox.ttf.TrueTypeFont
-
Packages that use TrueTypeFont Package Description org.apache.fontbox.ttf This package contains classes to parse a TTF file.org.apache.pdfbox.pdmodel The PDModel package represents a high level API for creating and manipulating PDF documents.org.apache.pdfbox.pdmodel.font 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.ttf Modifier and Type Class Description classOpenTypeFontAn OpenType (OTF/TTF) font.Fields in org.apache.fontbox.ttf declared as TrueTypeFont Modifier and Type Field Description private TrueTypeFontCFFTable.CFFBytesource. ttfprivate TrueTypeFontTTFSubsetter. ttfMethods in org.apache.fontbox.ttf that return TrueTypeFont Modifier and Type Method Description private TrueTypeFontTTFParser. createFontWithTables(TTFDataStream raf)Parse a file and get a true type font.private TrueTypeFontTrueTypeCollection. getFontAtIndex(int idx)TrueTypeFontTrueTypeCollection. getFontByName(java.lang.String name)Get a TT font from a collection.(package private) TrueTypeFontTTFParser. newFont(TTFDataStream raf)(package private) TrueTypeFontTTFParser. parse(TTFDataStream raf)TrueTypeFontTTFParser. parse(RandomAccessRead randomAccessRead)Parse a RandomAccessRead and return a TrueType font.TrueTypeFontTTFParser. parseEmbedded(java.io.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 TrueTypeFont Modifier and Type Method Description (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.private voidNamingTable. read(TrueTypeFont ttf, TTFDataStream data, boolean onlyHeaders)(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.(package private) voidCFFTable. readHeaders(TrueTypeFont ttf, TTFDataStream data, FontHeaders outHeaders)This will read required headers from the stream into outHeaders.(package private) voidHeaderTable. readHeaders(TrueTypeFont ttf, TTFDataStream data, FontHeaders outHeaders)This will read required headers from the stream into outHeaders.(package private) voidNamingTable. readHeaders(TrueTypeFont ttf, TTFDataStream data, FontHeaders outHeaders)This will read required headers from the stream into outHeaders.(package private) voidTTFTable. readHeaders(TrueTypeFont ttf, TTFDataStream data, FontHeaders outHeaders)This will read required headers from the stream into outHeaders.Constructors in org.apache.fontbox.ttf with parameters of type TrueTypeFont Constructor Description CFFBytesource(TrueTypeFont ttf)TTFSubsetter(TrueTypeFont ttf)Creates a subsetter for the given font.TTFSubsetter(TrueTypeFont ttf, java.util.List<java.lang.String> tables)Creates a subsetter for the given font. -
Uses of TrueTypeFont in org.apache.pdfbox.pdmodel
Fields in org.apache.pdfbox.pdmodel with type parameters of type TrueTypeFont Modifier and Type Field Description private java.util.Set<TrueTypeFont>PDDocument. fontsToCloseMethods in org.apache.pdfbox.pdmodel with parameters of type TrueTypeFont Modifier and Type Method Description voidPDDocument. 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 TrueTypeFont Modifier and Type Field Description private TrueTypeFontFontMapperImpl. lastResortFontprivate TrueTypeFontPDCIDFontType2. ttfprivate TrueTypeFontPDTrueTypeFont. ttfprivate TrueTypeFontPDType0Font. ttfprotected TrueTypeFontTrueTypeEmbedder. ttfMethods in org.apache.pdfbox.pdmodel.font that return TrueTypeFont Modifier and Type Method Description private TrueTypeFontPDCIDFontType2. findFontOrSubstitute()private TrueTypeFontFileSystemFontProvider.FSFontInfo. getTrueTypeFont(java.lang.String postScriptName, java.io.File file)TrueTypeFontPDCIDFontType2. getTrueTypeFont()Returns the embedded or substituted TrueType font.TrueTypeFontPDTrueTypeFont. getTrueTypeFont()Returns the embedded or substituted TrueType font.private TrueTypeFontFileSystemFontProvider.FSFontInfo. readTrueTypeFont(java.lang.String postScriptName, java.io.File file)Methods in org.apache.pdfbox.pdmodel.font that return types with arguments of type TrueTypeFont Modifier and Type Method Description FontMapping<TrueTypeFont>FontMapper. getTrueTypeFont(java.lang.String baseFont, PDFontDescriptor fontDescriptor)Finds a TrueType font with the given PostScript name, or a suitable substitute, or null.FontMapping<TrueTypeFont>FontMapperImpl. getTrueTypeFont(java.lang.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 TrueTypeFont Modifier and Type Method Description 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 TrueTypeFont Constructor Description PDCIDFontType2(COSDictionary fontDictionary, PDType0Font parent, TrueTypeFont trueTypeFont)Constructor.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.PDTrueTypeFont(PDDocument document, TrueTypeFont ttf, Encoding encoding, boolean closeTTF)Creates a new TrueType font for embedding.PDTrueTypeFontEmbedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, Encoding encoding)Creates a new TrueType font embedder for the given TTF as a PDTrueTypeFont.PDType0Font(PDDocument document, TrueTypeFont ttf, boolean embedSubset, boolean closeTTF, boolean vertical)Private.TrueTypeEmbedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset)Creates a new TrueType font for embedding.
-