protected abstract static class GlyphMappingTable.RangeMappingTable extends GlyphMappingTable
GlyphMappingTable.EmptyMappingTable, GlyphMappingTable.MappedMappingTable, GlyphMappingTable.MappingRange, GlyphMappingTable.RangeMappingTable
GLYPH_MAPPING_TYPE_EMPTY, GLYPH_MAPPING_TYPE_MAPPED, GLYPH_MAPPING_TYPE_RANGE
Constructor and Description |
---|
RangeMappingTable(List entries)
Construct range mapping table.
|
Modifier and Type | Method and Description |
---|---|
List |
getEntries()
Obtain mapping entries.
|
int |
getMappedIndex(int gid)
Map glyph identifier (code) to coverge index.
|
abstract int |
getMappedIndex(int gid,
int s,
int m)
Map glyph identifier (code) to coverge index.
|
int |
getMappingSize()
Obtain size of mapping table, i.e., ciMax + 1, where ciMax is the maximum
mapping index.
|
int |
getType()
Obtain mapping type.
|
String |
toString() |
public RangeMappingTable(List entries)
entries
- of mapping rangespublic int getType()
getType
in class GlyphMappingTable
public List getEntries()
getEntries
in class GlyphMappingTable
public int getMappingSize()
getMappingSize
in class GlyphMappingTable
public int getMappedIndex(int gid)
getMappedIndex
in class GlyphMappingTable
gid
- glyph identifier (code)public abstract int getMappedIndex(int gid, int s, int m)
gid
- glyph identifier (code)s
- start of rangem
- mapping valueCopyright © 2025 Apache Software Foundation. All rights reserved.