|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.ps.encode.CMap04Entry
public class CMap04Entry
Contains one entry from a TrueType CMap subtable, format 4, which handles 16-bit Unicode codepoint ranges.
| Constructor Summary | |
|---|---|
CMap04Entry(char unicodeStart,
char unicodeEnd,
char glyphStartIndex)
Constructor for contiguous entries. |
|
CMap04Entry(char unicodeStart,
char unicodeEnd,
char[] glyphIndexes)
Constructor for non-contiguous entries. |
|
| Method Summary | |
|---|---|
boolean |
containsChar(char c)
Indicates whether this entry can encode a given character. |
char |
decodeCharacter(int glyphIndex)
Decodes a given glyphIndex. |
char |
encodeCharacter(char c)
Encodes a given character. |
char |
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 CMap04Entry(char unicodeStart,
char unicodeEnd,
char 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.
public CMap04Entry(char unicodeStart,
char unicodeEnd,
char[] glyphIndexes)
unicodeStart - The starting Unicode code point covered by this
mapping.unicodeEnd - The ending Unicode code point covered by this mapping.glyphIndexes - The array of encoded glyph indexes corresponding to
the range unicodeStart through unicodeEnd.| Method Detail |
|---|
public char getGlyphEndIndex()
public boolean containsChar(char c)
c - The character to be tested.
c.public char encodeCharacter(char c)
c - The character to be encoded.
c, or zero if this
entry does not know how to encode it.public char 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 | |||||||||