org.foray.font.format.ttf
Class OTFLanguageSystem

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

public class OTFLanguageSystem
extends Object

An OpenType Language System.


Field Summary
static byte TAG_SIZE
          The size, in bytes, of an OpenType Language System tag.
 
Constructor Summary
OTFLanguageSystem()
          Constructor.
 
Method Summary
 char[] getFeatureIndexes()
          Returns the (arbitarily ordered) array of indexes into the features list.
 char getRequiredFeatureIndex()
          Returns the index of a required feature in this language system.
static OTFLanguageSystem parse(RandomAccessInput raInput, int offset)
          Parses a language system.
 
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 byte TAG_SIZE
The size, in bytes, of an OpenType Language System tag.

See Also:
Constant Field Values
Constructor Detail

OTFLanguageSystem

public OTFLanguageSystem()
Constructor.

Method Detail

parse

public static OTFLanguageSystem parse(RandomAccessInput raInput,
                                      int offset)
                               throws IOException
Parses a language system.

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

getRequiredFeatureIndex

public char getRequiredFeatureIndex()
Returns the index of a required feature in this language system. If null, the value is 0xFFFF.

Returns:
The index of a required feature, or 0xFFFF if null.

getFeatureIndexes

public char[] getFeatureIndexes()
Returns the (arbitarily ordered) array of indexes into the features list.

Returns:
The array of feature indexes for this language system.


Copyright © 2017. All rights reserved.