Top Description Inners Fields Constructors Methods
org.apache.fontbox.ttf

public Class CFFTable

extends TTFTable
Class Inheritance
Imports
java.io.IOException, org.apache.fontbox.cff.CFFFont, .CFFParser, org.apache.pdfbox.io.RandomAccessRead, .RandomAccessReadBuffer

PostScript font program (compact font format).

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
CFFTable.CFFBytesource

Allows bytes to be re-read later by CFFParser.

Field Summary

Modifier and TypeField and Description
private CFFFont
public static final String
TAG

A tag that identifies this table type.

Inherited from org.apache.fontbox.ttf.TTFTable:
initialized

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public CFFFont

Returns:

the associated CFF font
getFont
()

Returns the CFF font, which is a compact representation of a PostScript Type 1, or CIDFont

pack-priv void
read(TrueTypeFont
The font that is being read.
ttf
,
TTFDataStream
The stream to read the data from.
data
)

Overrides org.apache.fontbox.ttf.TTFTable.read.

This will read the required data from the stream.

pack-priv void
readHeaders(TrueTypeFont
The font that is being read.
ttf
,
TTFDataStream
The stream to read the data from.
data
,
FontHeaders
The class to write the data to.
outHeaders
)

Overrides org.apache.fontbox.ttf.TTFTable.readHeaders.

This will read required headers from the stream into outHeaders.

Inherited from org.apache.fontbox.ttf.TTFTable:
getCheckSumgetInitializedgetLengthgetOffsetgetTagsetCheckSumsetLengthsetOffsetsetTag

Field Detail

cffFontback to summary
private CFFFont cffFont
TAGback to summary
public static final String TAG

A tag that identifies this table type.

Constructor Detail

CFFTableback to summary
pack-priv CFFTable()

Method Detail

getFontback to summary
public CFFFont getFont()

Returns the CFF font, which is a compact representation of a PostScript Type 1, or CIDFont

Returns:CFFFont

the associated CFF font

readback to summary
pack-priv void read(TrueTypeFont ttf, TTFDataStream data) throws IOException

Overrides org.apache.fontbox.ttf.TTFTable.read.

This will read the required data from the stream.

Parameters
ttf:TrueTypeFont

The font that is being read.

data:TTFDataStream

The stream to read the data from.

Annotations
@Override
Exceptions
IOException:
If there is an error reading the data.
readHeadersback to summary
pack-priv void readHeaders(TrueTypeFont ttf, TTFDataStream data, FontHeaders outHeaders) throws IOException

Overrides org.apache.fontbox.ttf.TTFTable.readHeaders.

Doc from org.apache.fontbox.ttf.TTFTable.readHeaders.

This will read required headers from the stream into outHeaders.

Parameters
ttf:TrueTypeFont

The font that is being read.

data:TTFDataStream

The stream to read the data from.

outHeaders:FontHeaders

The class to write the data to.

Annotations
@Override
Exceptions
IOException:
If there is an error reading the data.
org.apache.fontbox.ttf back to summary

private Class CFFTable.CFFBytesource

extends Object
implements ByteSource
Class Inheritance
All Implemented Interfaces
org.apache.fontbox.cff.CFFParser.ByteSource

Allows bytes to be re-read later by CFFParser.

Field Summary

Modifier and TypeField and Description
private final TrueTypeFont

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public byte[]
getBytes()

Implements org.apache.fontbox.cff.CFFParser.ByteSource.getBytes.

Returns the source bytes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ttfback to summary
private final TrueTypeFont ttf

Constructor Detail

CFFBytesourceback to summary
pack-priv CFFBytesource(TrueTypeFont ttf)

Method Detail

getBytesback to summary
public byte[] getBytes() throws IOException

Implements org.apache.fontbox.cff.CFFParser.ByteSource.getBytes.

Doc from org.apache.fontbox.cff.CFFParser.ByteSource.getBytes.

Returns the source bytes. May be called more than once.

Returns:byte[]

the source data as byte array

Annotations
@Override
Exceptions
IOException:
if the data could not be read