org.foray.font.format.ttf
Class TTCTableHeader

java.lang.Object
  extended by org.foray.font.format.ttf.TTCTableHeader

public final class TTCTableHeader
extends Object

A TTC (TrueType Collection) header.


Method Summary
 TrueTypeCollection getCollection()
          Returns the parent TrueType collection.
 long getDirectoryOffset(int directoryIndex)
          Return the offset to a specific directory.
 int getNumDirectories()
          Returns the number of directories.
static TTCTableHeader parse(TrueTypeCollection collection, RandomAccessInput raInput)
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static TTCTableHeader parse(TrueTypeCollection collection,
                                   RandomAccessInput raInput)
                            throws IOException
Constructor.

Parameters:
collection - The TTC file for which this table header is created.
raInput - The input being parsed.
Returns:
The parsed header instance.
Throws:
IOException - For I/O Error.

getCollection

public TrueTypeCollection getCollection()
Returns the parent TrueType collection.

Returns:
The parent TrueType collection.

getNumDirectories

public int getNumDirectories()
Returns the number of directories.

Returns:
The number of directories.

getDirectoryOffset

public long getDirectoryOffset(int directoryIndex)
Return the offset to a specific directory.

Parameters:
directoryIndex - The directory index.
Returns:
The offset to the directory.


Copyright © 2017. All rights reserved.