Top Fields Constructors Methods
jogamp.graph.font.typecast.ot

public Class OTFontCollection

extends Object
Class Inheritance
Imports
java.io.File, .BufferedInputStream, .DataInputStream, .FileInputStream, .IOException, .InputStream, java.util.ArrayList, jogamp.graph.font.typecast.ot.mac.ResourceHeader, .ResourceMap, .ResourceReference, .ResourceType, jogamp.graph.font.typecast.ot.table.DirectoryEntry, .TTCHeader, .Table

Author
David Schweinsberg
Version
$Id: OTFontCollection.java,v 1.6 2010-08-10 11:38:11 davidsch Exp $

Field Summary

Modifier and TypeField and Description
private String
private OTFont[]
private String
private boolean
private final ArrayList<Table>
private TTCHeader

Constructor Summary

AccessConstructor and Description
protected
OTFontCollection()

Creates new FontCollection

Method Summary

Modifier and TypeMethod and Description
public void
addTable(final Table table)

public static OTFontCollection
create(final File
The OpenType font file
file
)

public static OTFontCollection
create(final InputStream
The OpenType font input stream
istream
,
final int
the length of the OpenType font segment in the stream
streamLen
)

public String
public OTFont
getFont(final int i)

public int
public String
public Table
public TTCHeader
protected void
read(File
The OpenType font file
file
)

protected void
read(final InputStream
The OpenType font stream
is
,
final int
the length of the OpenType font segment in the stream
streamLen
)

private void
readImpl(final InputStream
The OpenType font stream, must support mark!
bis
,
final int streamLen)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_fileNameback to summary
private String _fileName
_fontsback to summary
private OTFont[] _fonts
_pathNameback to summary
private String _pathName
_resourceForkback to summary
private boolean _resourceFork
_tablesback to summary
private final ArrayList<Table> _tables
_ttcHeaderback to summary
private TTCHeader _ttcHeader

Constructor Detail

OTFontCollectionback to summary
protected OTFontCollection()

Creates new FontCollection

Method Detail

addTableback to summary
public void addTable(final Table table)
createback to summary
public static OTFontCollection create(final File file) throws IOException
Parameters
file:File

The OpenType font file

createback to summary
public static OTFontCollection create(final InputStream istream, final int streamLen) throws IOException
Parameters
istream:InputStream

The OpenType font input stream

streamLen:int

the length of the OpenType font segment in the stream

getFileNameback to summary
public String getFileName()
getFontback to summary
public OTFont getFont(final int i)
getFontCountback to summary
public int getFontCount()
getPathNameback to summary
public String getPathName()
getTableback to summary
public Table getTable(final DirectoryEntry de)
getTtcHeaderback to summary
public TTCHeader getTtcHeader()
readback to summary
protected void read(File file) throws IOException
Parameters
file:File

The OpenType font file

readback to summary
protected void read(final InputStream is, final int streamLen) throws IOException
Parameters
is:InputStream

The OpenType font stream

streamLen:int

the length of the OpenType font segment in the stream

readImplback to summary
private void readImpl(final InputStream bis, final int streamLen) throws IOException
Parameters
bis:InputStream

The OpenType font stream, must support mark!