org.foray.font.format.ttf
Class OTFCoveragex01

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

public class OTFCoveragex01
extends OTFCoverage

A coverage using Format 1 (List of glyph indexes).


Constructor Summary
OTFCoveragex01()
           
 
Method Summary
 int coverageIndex(int glyphIndex)
          Returns the coverage index for a given glyph index.
 char[] getGlyphArray()
          Returns the array of glyph indexes that define this coverage.
static OTFCoveragex01 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

OTFCoveragex01

public OTFCoveragex01()
Method Detail

parse

public static OTFCoveragex01 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.

getGlyphArray

public char[] getGlyphArray()
Returns the array of glyph indexes that define this coverage.

Returns:
The array of glyph indexes that define this coverage.

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.