|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.font.ttf.CMap
public abstract class CMap
Constructor Summary | |
---|---|
protected |
CMap(short format,
short language)
Creates a new instance of CMap Don't use this directly, use CMap.createMap() |
Method Summary | |
---|---|
static CMap |
createMap(short format,
short language)
Create a map for the given format and language |
abstract java.nio.ByteBuffer |
getData()
Get the data in this map as a byte buffer |
short |
getFormat()
Get the format of this map |
short |
getLanguage()
Get the language of this map |
abstract short |
getLength()
Get the length of this map |
static CMap |
getMap(java.nio.ByteBuffer data)
Get a map from the given data This method reads the format, data and length variables of the map. |
abstract byte |
map(byte src)
Map an 8 bit value to another 8 bit value |
abstract char |
map(char src)
Map a 16 bit value to another 16 but value |
abstract char |
reverseMap(short glyphID)
Get the src code which maps to the given glyphID |
abstract void |
setData(int length,
java.nio.ByteBuffer data)
Set the data for this map |
java.lang.String |
toString()
Print a pretty string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CMap(short format, short language)
CMap.createMap()
Method Detail |
---|
public static CMap createMap(short format, short language)
The Macintosh standard character to glyph mapping is supported by format 0.
Format 2 supports a mixed 8/16 bit mapping useful for Japanese, Chinese and Korean.
Format 4 is used for 16 bit mappings.
Format 6 is used for dense 16 bit mappings.
Formats 8, 10, and 12 (properly 8.0, 10.0, and 12.0) are used
for mixed 16/32-bit and pure 32-bit mappings.
This supports text encoded with surrogates in Unicode 2.0 and later.
Reference:
http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6cmap.html
public static CMap getMap(java.nio.ByteBuffer data)
public short getFormat()
public short getLanguage()
public abstract void setData(int length, java.nio.ByteBuffer data)
public abstract java.nio.ByteBuffer getData()
public abstract short getLength()
public abstract byte map(byte src)
public abstract char map(char src)
public abstract char reverseMap(short glyphID)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |