protected abstract static class GlyphMappingTable.RangeMappingTable extends GlyphMappingTable
GlyphMappingTable.EmptyMappingTable, GlyphMappingTable.MappedMappingTable, GlyphMappingTable.MappingRange, GlyphMappingTable.RangeMappingTableGLYPH_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 GlyphMappingTablepublic List getEntries()
getEntries in class GlyphMappingTablepublic int getMappingSize()
getMappingSize in class GlyphMappingTablepublic int getMappedIndex(int gid)
getMappedIndex in class GlyphMappingTablegid - glyph identifier (code)public abstract int getMappedIndex(int gid,
int s,
int m)
gid - glyph identifier (code)s - start of rangem - mapping valueCopyright © 2023 Apache Software Foundation. All rights reserved.