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.org.apache.pdfbox.rendering -
-
Uses of TrueTypeFont in org.apache.fontbox.ttf
Subclasses of TrueTypeFont in org.apache.fontbox.ttf Modifier and Type Class Description class
OpenTypeFont
An OpenType (OTF/TTF) font.Fields in org.apache.fontbox.ttf declared as TrueTypeFont Modifier and Type Field Description protected TrueTypeFont
TTFTable. font
The font which contains this table.private TrueTypeFont
CFFTable.CFFBytesource. ttf
private TrueTypeFont
TTFSubsetter. ttf
Methods in org.apache.fontbox.ttf that return TrueTypeFont Modifier and Type Method Description private TrueTypeFont
TrueTypeCollection. getFontAtIndex(int idx)
TrueTypeFont
TrueTypeCollection. getFontByName(java.lang.String name)
Get a TT font from a collection.(package private) TrueTypeFont
TTFParser. newFont(TTFDataStream raf)
TrueTypeFont
TTFParser. parse(java.io.File ttfFile)
Parse a file and return a TrueType font.TrueTypeFont
TTFParser. parse(java.io.InputStream inputStream)
Parse an input stream and return a TrueType font.TrueTypeFont
TTFParser. parse(java.lang.String ttfFile)
Parse a file and return a TrueType font.(package private) TrueTypeFont
TTFParser. parse(TTFDataStream raf)
Parse a file and get a true type font.TrueTypeFont
TTFParser. 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) 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, java.lang.String tag)
protected TTFTable
TTFParser. readTable(TrueTypeFont font, java.lang.String tag)
private TTFTable
TTFParser. readTableDirectory(TrueTypeFont font, TTFDataStream raf)
-
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. fontsToClose
Methods in org.apache.pdfbox.pdmodel with parameters of type TrueTypeFont Modifier and Type Method Description void
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 TrueTypeFont Modifier and Type Field Description private TrueTypeFont
FontMapperImpl. lastResortFont
private TrueTypeFont
PDCIDFontType2. ttf
private TrueTypeFont
PDTrueTypeFont. ttf
private TrueTypeFont
PDType0Font. ttf
protected TrueTypeFont
TrueTypeEmbedder. ttf
Methods in org.apache.pdfbox.pdmodel.font that return TrueTypeFont Modifier and Type Method Description private TrueTypeFont
PDCIDFontType2. findFontOrSubstitute()
private TrueTypeFont
FileSystemFontProvider.FSFontInfo. getTrueTypeFont(java.lang.String postScriptName, java.io.File file)
TrueTypeFont
PDCIDFontType2. getTrueTypeFont()
Returns the embedded or substituted TrueType font.TrueTypeFont
PDTrueTypeFont. getTrueTypeFont()
Returns the embedded or substituted TrueType font.TrueTypeFont
TrueTypeEmbedder. getTrueTypeFont()
Deprecated.private TrueTypeFont
FileSystemFontProvider.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 void
FileSystemFontProvider. addTrueTypeFontImpl(TrueTypeFont ttf, java.io.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.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 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. -
Uses of TrueTypeFont in org.apache.pdfbox.rendering
Fields in org.apache.pdfbox.rendering declared as TrueTypeFont Modifier and Type Field Description private TrueTypeFont
TTFGlyph2D. ttf
Constructors in org.apache.pdfbox.rendering with parameters of type TrueTypeFont Constructor Description TTFGlyph2D(TrueTypeFont ttf, PDFont font, boolean isCIDFont)
-