Package | Description |
---|---|
org.apache.fontbox.ttf |
This package contains classes to parse a TTF file.
|
org.apache.pdfbox.pdmodel.font |
Classes to deal with font functionality in a PDF Document.
|
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.
|
Modifier and Type | Method and Description |
---|---|
TrueTypeFont |
TrueTypeCollection.getFontByName(String name)
Get a TT font from a collection.
|
TrueTypeFont |
TTFParser.parse(File ttfFile)
Parse a file and return a TrueType font.
|
TrueTypeFont |
TTFParser.parse(InputStream inputStream)
Parse an input stream and return a TrueType font.
|
TrueTypeFont |
TTFParser.parse(String ttfFile)
Parse a file and return a TrueType font.
|
TrueTypeFont |
TTFParser.parseEmbedded(InputStream inputStream)
Parse an input stream and return a TrueType font that is to be embedded.
|
Modifier and Type | Method and Description |
---|---|
void |
NameRecord.initData(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
TrueTypeCollection.TrueTypeFontProcessor.process(TrueTypeFont ttf) |
void |
VerticalOriginTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
VerticalMetricsTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
VerticalHeaderTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
PostScriptTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
OS2WindowsMetricsTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
NamingTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
MaximumProfileTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
KerningTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
IndexToLocationTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
HorizontalMetricsTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
HorizontalHeaderTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
HeaderTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
GlyphTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
CmapTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
CFFTable.read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
protected TTFTable |
TTFParser.readTable(TrueTypeFont font,
String tag) |
protected TTFTable |
OTFParser.readTable(TrueTypeFont font,
String tag) |
Constructor and Description |
---|
TTFSubsetter(TrueTypeFont ttf)
Creates a subsetter for the given font.
|
TTFSubsetter(TrueTypeFont ttf,
List<String> tables)
Creates a subsetter for the given font.
|
Modifier and Type | Method and Description |
---|---|
TrueTypeFont |
PDTrueTypeFont.getTrueTypeFont()
Returns the embedded or substituted TrueType font.
|
TrueTypeFont |
PDCIDFontType2.getTrueTypeFont()
Returns the embedded or substituted TrueType font.
|
Modifier and Type | Method and Description |
---|---|
FontMapping<TrueTypeFont> |
FontMapper.getTrueTypeFont(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 |
---|---|
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.
|
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.