org.foray.font.format.ttf
Class OTFCoverage

java.lang.Object
  extended by org.foray.font.format.ttf.OTFCoverage
Direct Known Subclasses:
OTFCoveragex01, OTFCoveragex02

public abstract class OTFCoverage
extends Object

Abstract superclass for coverage types.


Constructor Summary
OTFCoverage()
           
 
Method Summary
abstract  int coverageIndex(int glyphIndex)
          Returns the coverage index for a given glyph index.
static OTFCoverage parse(RandomAccessInput raInput, int offset)
          Parses a coverage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OTFCoverage

public OTFCoverage()
Method Detail

parse

public static OTFCoverage parse(RandomAccessInput raInput,
                                int offset)
                         throws IOException
Parses a coverage.

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

coverageIndex

public abstract int coverageIndex(int glyphIndex)
Returns the coverage index for a given glyph index.

Parameters:
glyphIndex - The glyph index to be tested.
Returns:
The coverage index, or a negative number if glyphIndex is not covered.


Copyright © 2017. All rights reserved.