|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.encoding.Encoding
de.intarsys.pdf.font.AFMEncoding
public class AFMEncoding
The builtin encoding of AFM defined fonts.
Field Summary |
---|
Constructor Summary | |
---|---|
AFMEncoding(de.intarsys.cwt.font.afm.AFM afm)
AFMEncoding constructor comment. |
Method Summary | |
---|---|
COSObject |
cosGetObject()
Get an object that can be used as a representation of the receiver encoding within doc . |
de.intarsys.cwt.font.afm.AFM |
getAfm()
Return the underlying Adobe font metrics. |
int |
getDecoded(int codepoint)
Get the character for the codepoint or -1 if not available. |
int |
getEncoded(int character)
Get the codepoint for the the character or -1 if invalid. |
int |
getEncoded(String name)
Get the codepoint for the the named character or -1 if invalid. |
String |
getGlyphName(int codePoint)
Get the character name for a given encoded codepoint. |
String |
getName()
The name of this encoding. |
Methods inherited from class de.intarsys.pdf.encoding.Encoding |
---|
createNamed, createReader, createWriter, decode, decode, decode, encode, encode, encode, encode, getDifferenceDecoded, getDifferenceGlyphName, getNextDecoded, getNextEncoded, getValidEncoded, getValidEncoded, isEncodable, isEncodable, isEncodable, isFontSpecificEncoding, putNextDecoded, putNextEncoded, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AFMEncoding(de.intarsys.cwt.font.afm.AFM afm)
afm
- The AFM
object defining the encoding.Method Detail |
---|
public COSObject cosGetObject()
Encoding
doc
.
cosGetObject
in class Encoding
doc
.public de.intarsys.cwt.font.afm.AFM getAfm()
public int getDecoded(int codepoint)
Encoding
getDecoded
in class Encoding
codepoint
- The codepoint
public int getEncoded(int character)
Encoding
getEncoded
in class Encoding
character
- The character to look up.
public int getEncoded(String name)
Encoding
getEncoded
in class Encoding
name
- The character name to look up.
public String getGlyphName(int codePoint)
Encoding
getGlyphName
in class Encoding
codePoint
- The encoded codepoint.
codepoint
or ".notdef".public String getName()
Encoding
getName
in class Encoding
|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |