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 |
Modifier and Type | Class and Description |
---|---|
class |
OpenTypeFont
An OpenType (OTF/TTF) font.
|
Modifier and Type | Field and Description |
---|---|
protected TrueTypeFont |
TTFTable.font
The font which contains this table.
|
private TrueTypeFont |
CFFTable.CFFBytesource.ttf |
private TrueTypeFont |
TTFSubsetter.ttf |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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 |
HorizontalMetricsTable.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 |
GlyphSubstitutionTable.read(TrueTypeFont ttf,
TTFDataStream data) |
(package private) void |
TTFTable.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 |
GlyphTable.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 |
VerticalHeaderTable.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 |
CFFTable.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 |
VerticalOriginTable.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 |
HeaderTable.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.
|
protected TTFTable |
TTFParser.readTable(TrueTypeFont font,
java.lang.String tag) |
protected TTFTable |
OTFParser.readTable(TrueTypeFont font,
java.lang.String tag) |
private TTFTable |
TTFParser.readTableDirectory(TrueTypeFont font,
TTFDataStream raf) |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<TrueTypeFont> |
PDDocument.fontsToClose |
Modifier and Type | Method and 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.
|
Modifier and Type | Field and Description |
---|---|
private TrueTypeFont |
FontMapperImpl.lastResortFont |
private TrueTypeFont |
PDCIDFontType2.ttf |
private TrueTypeFont |
PDType0Font.ttf |
protected TrueTypeFont |
TrueTypeEmbedder.ttf |
private TrueTypeFont |
PDTrueTypeFont.ttf |
Modifier and Type | Method and Description |
---|---|
private TrueTypeFont |
PDCIDFontType2.findFontOrSubstitute() |
TrueTypeFont |
PDCIDFontType2.getTrueTypeFont()
Returns the embedded or substituted TrueType font.
|
TrueTypeFont |
TrueTypeEmbedder.getTrueTypeFont()
Deprecated.
|
TrueTypeFont |
PDTrueTypeFont.getTrueTypeFont()
Returns the embedded or substituted TrueType font.
|
private TrueTypeFont |
FileSystemFontProvider.FSFontInfo.getTrueTypeFont(java.lang.String postScriptName,
java.io.File file) |
private TrueTypeFont |
FileSystemFontProvider.FSFontInfo.readTrueTypeFont(java.lang.String postScriptName,
java.io.File file) |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
Modifier and Type | Method and 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 PDType0Font |
PDType0Font.load(PDDocument doc,
TrueTypeFont ttf,
boolean embedSubset)
Loads a TTF to be embedded into a document as a Type 0 font.
|
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.loadVertical(PDDocument doc,
TrueTypeFont ttf,
boolean embedSubset)
Loads a TTF to be embedded into a document as a vertical Type 0 font.
|
Constructor and 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.
|
Modifier and Type | Field and Description |
---|---|
private TrueTypeFont |
TTFGlyph2D.ttf |
Constructor and Description |
---|
TTFGlyph2D(TrueTypeFont ttf,
PDFont font,
boolean isCIDFont) |