Package org.apache.fontbox.ttf
Class CFFTable
java.lang.Object
org.apache.fontbox.ttf.TTFTable
org.apache.fontbox.ttf.CFFTable
PostScript font program (compact font format).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Allows bytes to be re-read later by CFFParser. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CFFFont
static final String
A tag that identifies this table type.Fields inherited from class org.apache.fontbox.ttf.TTFTable
font, initialized
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFont()
Returns the CFF font, which is a compact representation of a PostScript Type 1, or CIDFont(package private) void
read
(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.Methods inherited from class org.apache.fontbox.ttf.TTFTable
getCheckSum, getInitialized, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
-
Field Details
-
TAG
A tag that identifies this table type.- See Also:
-
cffFont
-
-
Constructor Details
-
CFFTable
CFFTable(TrueTypeFont font)
-
-
Method Details
-
read
This will read the required data from the stream.- Overrides:
read
in classTTFTable
- Parameters:
ttf
- The font that is being read.data
- The stream to read the data from.- Throws:
IOException
- If there is an error reading the data.
-
getFont
Returns the CFF font, which is a compact representation of a PostScript Type 1, or CIDFont
-