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.
|
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 |
TrueTypeCollection.TrueTypeFontProcessor.process(TrueTypeFont ttf) |
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 |
---|---|
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 | Method and Description |
---|---|
TrueTypeFont |
PDCIDFontType2.getTrueTypeFont()
Returns the embedded or substituted TrueType font.
|
TrueTypeFont |
PDTrueTypeFont.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–2023 The Apache Software Foundation. All rights reserved.