public final class GlyphCoverageTable extends GlyphMappingTable implements GlyphCoverageMapping
.Base class implementation of glyph coverage table.
This work was originally authored by Glenn Adams (gadams@apache.org).
GlyphMappingTable.EmptyMappingTable, GlyphMappingTable.MappedMappingTable, GlyphMappingTable.MappingRange, GlyphMappingTable.RangeMappingTable
Modifier and Type | Field and Description |
---|---|
static int |
GLYPH_COVERAGE_TYPE_EMPTY
empty mapping table
|
static int |
GLYPH_COVERAGE_TYPE_MAPPED
mapped mapping table
|
static int |
GLYPH_COVERAGE_TYPE_RANGE
range based mapping table
|
GLYPH_MAPPING_TYPE_EMPTY, GLYPH_MAPPING_TYPE_MAPPED, GLYPH_MAPPING_TYPE_RANGE
Modifier and Type | Method and Description |
---|---|
static GlyphCoverageTable |
createCoverageTable(List entries)
Create glyph coverage table.
|
int |
getCoverageIndex(int gid)
Map glyph identifier (code) to coverge index.
|
int |
getCoverageSize()
Obtain size of coverage table, i.e., ciMax + 1, where ciMax is the maximum
coverage index.
|
List |
getEntries()
Obtain mapping entries.
|
int |
getType()
Obtain mapping type.
|
getMappedIndex, getMappingSize
public static final int GLYPH_COVERAGE_TYPE_EMPTY
public static final int GLYPH_COVERAGE_TYPE_MAPPED
public static final int GLYPH_COVERAGE_TYPE_RANGE
public int getType()
getType
in class GlyphMappingTable
public List getEntries()
getEntries
in class GlyphMappingTable
public int getCoverageSize()
getCoverageSize
in interface GlyphCoverageMapping
public int getCoverageIndex(int gid)
getCoverageIndex
in interface GlyphCoverageMapping
gid
- glyph identifier (code)public static GlyphCoverageTable createCoverageTable(List entries)
entries
- list of mapped or ranged coverage entries, or null or empty listCopyright © 2025 Apache Software Foundation. All rights reserved.