org.foray.font.format.ttf
Class OTFCoveragex02
java.lang.Object
org.foray.font.format.ttf.OTFCoverage
org.foray.font.format.ttf.OTFCoveragex02
public class OTFCoveragex02
- extends OTFCoverage
A coverage using Format 2 (List of glyph index ranges).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OTFCoveragex02
public OTFCoveragex02()
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.