org.foray.font.format.ttf
Class OTFCoveragex02

java.lang.Object
  extended by org.foray.font.format.ttf.OTFCoverage
      extended by org.foray.font.format.ttf.OTFCoveragex02

public class OTFCoveragex02
extends OTFCoverage

A coverage using Format 2 (List of glyph index ranges).


Nested Class Summary
 class OTFCoveragex02.RangeRecord
          A range in this coverage.
 
Constructor Summary
OTFCoveragex02()
           
 
Method Summary
 int coverageIndex(int glyphIndex)
          Returns the coverage index for a given glyph index.
static OTFCoveragex02 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

OTFCoveragex02

public OTFCoveragex02()
Method Detail

parse

public static OTFCoveragex02 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 int coverageIndex(int glyphIndex)
Description copied from class: OTFCoverage
Returns the coverage index for a given glyph index.

Specified by:
coverageIndex in class OTFCoverage
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.