public final class GlyphClassTable extends GlyphMappingTable implements GlyphClassMapping
Base class implementation of glyph class 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_CLASS_TYPE_COVERAGE_SET
empty mapping table
|
static int |
GLYPH_CLASS_TYPE_EMPTY
empty mapping table
|
static int |
GLYPH_CLASS_TYPE_MAPPED
mapped mapping table
|
static int |
GLYPH_CLASS_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 GlyphClassTable |
createClassTable(List entries)
Create glyph class table.
|
int |
getClassIndex(int gid,
int set)
Map glyph identifier (code) to coverge index.
|
int |
getClassSize(int set)
Obtain size of class table, i.e., ciMax + 1, where ciMax is the maximum
class index.
|
List |
getEntries()
Obtain mapping entries.
|
int |
getType()
Obtain mapping type.
|
getMappedIndex, getMappingSize
public static final int GLYPH_CLASS_TYPE_EMPTY
public static final int GLYPH_CLASS_TYPE_MAPPED
public static final int GLYPH_CLASS_TYPE_RANGE
public static final int GLYPH_CLASS_TYPE_COVERAGE_SET
public int getType()
getType
in class GlyphMappingTable
public List getEntries()
getEntries
in class GlyphMappingTable
public int getClassSize(int set)
getClassSize
in interface GlyphClassMapping
set
- for coverage set based class mappings, indicates set index, otherwise ignoredpublic int getClassIndex(int gid, int set)
getClassIndex
in interface GlyphClassMapping
gid
- glyph identifier (code)set
- for coverage set based class mappings, indicates set index, otherwise ignoredpublic static GlyphClassTable createClassTable(List entries)
entries
- list of mapped or ranged class entries, or null or empty listCopyright © 2025 Apache Software Foundation. All rights reserved.