|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.ps.encode.CMap12Entry
public class CMap12Entry
Contains one entry from a TrueType CMap subtable, Format 12, which handles 32-bit Unicode codepoint ranges.
Constructor Summary | |
---|---|
CMap12Entry(int unicodeStart,
int unicodeEnd,
int glyphStartIndex)
Constructor. |
Method Summary | |
---|---|
boolean |
containsChar(int codePoint)
Indicates whether this entry can encode a given character. |
int |
decodeCharacter(int glyphIndex)
Decodes a given glyphIndex. |
int |
encodeCharacter(int codePoint)
Encodes a given character. |
int |
getGlyphEndIndex()
Compute the glyphEndIndex that is implied from the raw data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMap12Entry(int unicodeStart, int unicodeEnd, int glyphStartIndex)
unicodeStart
- The starting Unicode code point covered by this
mapping.unicodeEnd
- The ending Unicode code point covered by this mapping.glyphStartIndex
- The starting glyph index mapped by this mapping.
This is the encoded value for unicodeStart
.Method Detail |
---|
public int getGlyphEndIndex()
public boolean containsChar(int codePoint)
codePoint
- The Unicode code point to be tested.
codePoint
.public int encodeCharacter(int codePoint)
codePoint
- The Unicode code point to be encoded.
codePoint
, or zero
if this entry does not know how to encode it.public int decodeCharacter(int glyphIndex)
glyphIndex
- The glyph index to be decoded.
glyphIndex
,
or Character.MAX_VALUE
if this entry does not know how to decode
it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |