Top Description Inners Fields Constructors Methods
jogamp.graph.font.typecast.ot.table

public Class CffTable

extends Object
implements Table
Class Inheritance
All Implemented Interfaces
jogamp.graph.font.typecast.ot.table.Table
Imports
java.io.ByteArrayInputStream, .DataInput, .DataInputStream, .IOException, java.util.ArrayList, .Dictionary, .Enumeration, .Hashtable

Compact Font Format Table
Author
David Schweinsberg
Version
$Id: CffTable.java,v 1.4 2007-07-26 11:15:06 davidsch Exp $

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract class
private class
private class
private class
private class
private class
private class
public static class
public class
public class
public class
public class

Field Summary

Modifier and TypeField and Description
private final byte[]
private final CffTable.Charset[]
private final Charstring[][]
private final CffTable.Index[]
private final DirectoryEntry
private final CffTable.Index
private final int
private final int
private final int
private final CffTable.NameIndex
private final int
private final CffTable.StringIndex
private final CffTable.TopDictIndex

Constructor Summary

AccessConstructor and Description
protected
CffTable(final DirectoryEntry de, final DataInput di)

Creates a new instance of CffTable

Method Summary

Modifier and TypeMethod and Description
public CffTable.Charset
getCharset(final int fontIndex)

public Charstring
getCharstring(final int fontIndex, final int gid)

public int
getCharstringCount(final int fontIndex)

private DataInput
getDataInputForOffset(final int offset)

public DirectoryEntry

Returns:

A directory entry
getDirectoryEntry
()

Implements jogamp.graph.font.typecast.ot.table.Table.getDirectoryEntry.

Get a directory entry for this table.
public CffTable.NameIndex
public int
getType()

Implements jogamp.graph.font.typecast.ot.table.Table.getType.

Get the table type, as a table directory value.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_bufback to summary
private final byte[] _buf
_charsetsback to summary
private final CffTable.Charset[] _charsets
_charstringsArrayback to summary
private final Charstring[][] _charstringsArray
_charStringsIndexArrayback to summary
private final CffTable.Index[] _charStringsIndexArray
_deback to summary
private final DirectoryEntry _de
_globalSubrIndexback to summary
private final CffTable.Index _globalSubrIndex
_hdrSizeback to summary
private final int _hdrSize
_majorback to summary
private final int _major
_minorback to summary
private final int _minor
_nameIndexback to summary
private final CffTable.NameIndex _nameIndex
_offSizeback to summary
private final int _offSize
_stringIndexback to summary
private final CffTable.StringIndex _stringIndex
_topDictIndexback to summary
private final CffTable.TopDictIndex _topDictIndex

Constructor Detail

CffTableback to summary
protected CffTable(final DirectoryEntry de, final DataInput di) throws IOException

Creates a new instance of CffTable

Method Detail

getCharsetback to summary
public CffTable.Charset getCharset(final int fontIndex)
getCharstringback to summary
public Charstring getCharstring(final int fontIndex, final int gid)
getCharstringCountback to summary
public int getCharstringCount(final int fontIndex)
getDataInputForOffsetback to summary
private DataInput getDataInputForOffset(final int offset)
getDirectoryEntryback to summary
public DirectoryEntry getDirectoryEntry()

Implements jogamp.graph.font.typecast.ot.table.Table.getDirectoryEntry.

Get a directory entry for this table. This uniquely identifies the table in collections where there may be more than one instance of a particular table.

Returns:DirectoryEntry

A directory entry

Annotations
@Override
getNameIndexback to summary
public CffTable.NameIndex getNameIndex()
getTypeback to summary
public int getType()

Implements jogamp.graph.font.typecast.ot.table.Table.getType.

Doc from jogamp.graph.font.typecast.ot.table.Table.getType.

Get the table type, as a table directory value.

Returns:int

The table type

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

private abstract Class CffTable.Charset

extends Object
Class Inheritance
Known Direct Subclasses
jogamp.graph.font.typecast.ot.table.CffTable.CharsetFormat0, jogamp.graph.font.typecast.ot.table.CffTable.CharsetFormat1, jogamp.graph.font.typecast.ot.table.CffTable.CharsetFormat2

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public abstract int
public abstract int
getSID(int gid)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Charsetback to summary
private Charset()

Method Detail

getFormatback to summary
public abstract int getFormat()
getSIDback to summary
public abstract int getSID(int gid)
jogamp.graph.font.typecast.ot.table back to summary

private Class CffTable.CharsetFormat0

extends Charset
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int[]

Constructor Summary

AccessConstructor and Description
protected
CharsetFormat0(final DataInput di, final int glyphCount)

Method Summary

Modifier and TypeMethod and Description
public int
public int

Field Detail

_glyphback to summary
private final int[] _glyph

Constructor Detail

CharsetFormat0back to summary
protected CharsetFormat0(final DataInput di, final int glyphCount) throws IOException

Method Detail

getFormatback to summary
public int getFormat()

Implements abstract jogamp.graph.font.typecast.ot.table.CffTable.Charset.getFormat.

Annotations
@Override
getSIDback to summary
public int getSID(final int gid)

Implements abstract jogamp.graph.font.typecast.ot.table.CffTable.Charset.getSID.

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

private Class CffTable.CharsetFormat1

extends Charset
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ArrayList<CffTable.CharsetRange>

Constructor Summary

AccessConstructor and Description
protected
CharsetFormat1(final DataInput di, final int glyphCount)

Method Summary

Modifier and TypeMethod and Description
public int
public int

Field Detail

_charsetRangesback to summary
private final ArrayList<CffTable.CharsetRange> _charsetRanges

Constructor Detail

CharsetFormat1back to summary
protected CharsetFormat1(final DataInput di, final int glyphCount) throws IOException

Method Detail

getFormatback to summary
public int getFormat()

Implements abstract jogamp.graph.font.typecast.ot.table.CffTable.Charset.getFormat.

Annotations
@Override
getSIDback to summary
public int getSID(final int gid)

Implements abstract jogamp.graph.font.typecast.ot.table.CffTable.Charset.getSID.

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

private Class CffTable.CharsetFormat2

extends Charset
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ArrayList<CffTable.CharsetRange>

Constructor Summary

AccessConstructor and Description
protected
CharsetFormat2(final DataInput di, final int glyphCount)

Method Summary

Modifier and TypeMethod and Description
public int
public int

Field Detail

_charsetRangesback to summary
private final ArrayList<CffTable.CharsetRange> _charsetRanges

Constructor Detail

CharsetFormat2back to summary
protected CharsetFormat2(final DataInput di, final int glyphCount) throws IOException

Method Detail

getFormatback to summary
public int getFormat()

Implements abstract jogamp.graph.font.typecast.ot.table.CffTable.Charset.getFormat.

Annotations
@Override
getSIDback to summary
public int getSID(final int gid)

Implements abstract jogamp.graph.font.typecast.ot.table.CffTable.Charset.getSID.

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

private Class CffTable.CharsetRange

extends Object
Class Inheritance
Known Direct Subclasses
jogamp.graph.font.typecast.ot.table.CffTable.CharsetRange1, jogamp.graph.font.typecast.ot.table.CffTable.CharsetRange2

Field Summary

Modifier and TypeField and Description
private int
private int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
public int
protected void
setFirst(final int first)

protected void
setLeft(final int left)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_firstback to summary
private int _first
_leftback to summary
private int _left

Constructor Detail

CharsetRangeback to summary
private CharsetRange()

Method Detail

getFirstback to summary
public int getFirst()
getLeftback to summary
public int getLeft()
setFirstback to summary
protected void setFirst(final int first)
setLeftback to summary
protected void setLeft(final int left)
jogamp.graph.font.typecast.ot.table back to summary

private Class CffTable.CharsetRange1

extends CharsetRange
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from jogamp.graph.font.typecast.ot.table.CffTable.CharsetRange:
getFirstgetLeftsetFirstsetLeft

Constructor Detail

CharsetRange1back to summary
protected CharsetRange1(final DataInput di) throws IOException
jogamp.graph.font.typecast.ot.table back to summary

private Class CffTable.CharsetRange2

extends CharsetRange
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from jogamp.graph.font.typecast.ot.table.CffTable.CharsetRange:
getFirstgetLeftsetFirstsetLeft

Constructor Detail

CharsetRange2back to summary
protected CharsetRange2(final DataInput di) throws IOException
jogamp.graph.font.typecast.ot.table back to summary

public Class CffTable.Dict

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int[]
private final Dictionary<Integer, Object>
private int

Constructor Summary

AccessConstructor and Description
protected
Dict(final int[] data, final int offset, final int length)

Method Summary

Modifier and TypeMethod and Description
private boolean
private String
decodeRealNibble(final int nibble)

public Object
getValue(final int key)

private boolean
private boolean
private Object
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_databack to summary
private final int[] _data
_entriesback to summary
private final Dictionary<Integer, Object> _entries
_indexback to summary
private int _index

Constructor Detail

Dictback to summary
protected Dict(final int[] data, final int offset, final int length)

Method Detail

addKeyAndValueEntryback to summary
private boolean addKeyAndValueEntry()
decodeRealNibbleback to summary
private String decodeRealNibble(final int nibble)
getValueback to summary
public Object getValue(final int key)
isOperandAtIndexback to summary
private boolean isOperandAtIndex()
isOperatorAtIndexback to summary
private boolean isOperatorAtIndex()
nextOperandback to summary
private Object nextOperand()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

public Class CffTable.Index

extends Object
Class Inheritance
Known Direct Subclasses
jogamp.graph.font.typecast.ot.table.CffTable.TopDictIndex, jogamp.graph.font.typecast.ot.table.CffTable.NameIndex, jogamp.graph.font.typecast.ot.table.CffTable.StringIndex

Field Summary

Modifier and TypeField and Description
private final int
private final int[]
private final int[]
private final int

Constructor Summary

AccessConstructor and Description
protected
Index(final DataInput di)

Method Summary

Modifier and TypeMethod and Description
public int
public int[]
public int
public int
getOffset(final int index)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_countback to summary
private final int _count
_databack to summary
private final int[] _data
_offsetback to summary
private final int[] _offset
_offSizeback to summary
private final int _offSize

Constructor Detail

Indexback to summary
protected Index(final DataInput di) throws IOException

Method Detail

getCountback to summary
public int getCount()
getDataback to summary
public int[] getData()
getDataLengthback to summary
public int getDataLength()
getOffsetback to summary
public int getOffset(final int index)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

public Class CffTable.NameIndex

extends Index
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected
NameIndex(final DataInput di)

Method Summary

Modifier and TypeMethod and Description
public String
getName(final int index)

public String
toString()

Overrides jogamp.graph.font.typecast.ot.table.CffTable.Index.toString.

Returns a string representation of the object.
Inherited from jogamp.graph.font.typecast.ot.table.CffTable.Index:
getCountgetDatagetDataLengthgetOffset

Constructor Detail

NameIndexback to summary
protected NameIndex(final DataInput di) throws IOException

Method Detail

getNameback to summary
public String getName(final int index)
toStringback to summary
public String toString()

Overrides jogamp.graph.font.typecast.ot.table.CffTable.Index.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

public Class CffTable.StringIndex

extends Index
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public String
getString(int index)

public String
toString()

Overrides jogamp.graph.font.typecast.ot.table.CffTable.Index.toString.

Returns a string representation of the object.
Inherited from jogamp.graph.font.typecast.ot.table.CffTable.Index:
getCountgetDatagetDataLengthgetOffset

Constructor Detail

StringIndexback to summary
protected StringIndex(final DataInput di) throws IOException

Method Detail

getStringback to summary
public String getString(int index)
toStringback to summary
public String toString()

Overrides jogamp.graph.font.typecast.ot.table.CffTable.Index.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

public Class CffTable.TopDictIndex

extends Index
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public CffTable.Dict
getTopDict(final int index)

public String
toString()

Overrides jogamp.graph.font.typecast.ot.table.CffTable.Index.toString.

Returns a string representation of the object.
Inherited from jogamp.graph.font.typecast.ot.table.CffTable.Index:
getCountgetDatagetDataLengthgetOffset

Constructor Detail

TopDictIndexback to summary
protected TopDictIndex(final DataInput di) throws IOException

Method Detail

getTopDictback to summary
public CffTable.Dict getTopDict(final int index)
toStringback to summary
public String toString()

Overrides jogamp.graph.font.typecast.ot.table.CffTable.Index.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override