org.foray.font.format.ttf
Class OTFFeature

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

public class OTFFeature
extends Object

An OpenType layout table feature.


Nested Class Summary
static class OTFFeature.OtfFeatureTag
          Enumeration of the various OTF feature tags.
 
Field Summary
static int TAG_SIZE
          The size, in bytes, of an OpenType Feature tag.
 
Constructor Summary
OTFFeature()
          Constructor.
 
Method Summary
 char lookupListIndexAt(int index)
          Returns a specified lookup list index.
 int lookupListIndexLength()
          Returns the number of lookup list indexes in this feature.
static OTFFeature parse(RandomAccessInput raInput, int offset)
          Parses a feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_SIZE

public static final int TAG_SIZE
The size, in bytes, of an OpenType Feature tag.

See Also:
Constant Field Values
Constructor Detail

OTFFeature

public OTFFeature()
Constructor.

Method Detail

parse

public static OTFFeature parse(RandomAccessInput raInput,
                               int offset)
                        throws IOException
Parses a feature.

Parameters:
raInput - The input from which the feature is being parsed.
offset - The offset in raInput for the start of the feature table.
Returns:
The parsed feature table instance.
Throws:
IOException - For I/O errors during parsing.

lookupListIndexLength

public int lookupListIndexLength()
Returns the number of lookup list indexes in this feature.

Returns:
The number of lookup list indexes in this feature.

lookupListIndexAt

public char lookupListIndexAt(int index)
Returns a specified lookup list index.

Parameters:
index - The index into the lookup list indexes.
Returns:
The lookup list index at index.


Copyright © 2017. All rights reserved.