|
intarsys PDF library API | |||||||||
| 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.encoding.FontSpecificEncoding
public class FontSpecificEncoding
An encoding that is defined externally in the font program itself.
There is no further information about how the mapping will be done and we will rely on some heuristics...
| Field Summary | |
|---|---|
static FontSpecificEncoding |
UNIQUE
|
| Constructor Summary | |
|---|---|
FontSpecificEncoding()
|
|
| Method Summary | |
|---|---|
int |
getByteCode(int unicode)
Get the byte code point where the character referenced by the Unicode code point unicode is mapped in this font encoding or -1
if invalid. |
int |
getByteCode(String name)
Get the code point where the character referenced by the Adobe glyph name name is mapped in this font encoding or -1 if not valid. |
COSObject |
getCosObject()
Get an object that can be used as a representation of the receiver encoding within doc. |
String |
getGlyphName(int codePoint)
Get the character name for a given encoded byte code point. |
String |
getName()
|
int |
getUnicode(int byteCode)
Get the Unicode code point for the encoded code Point byteCode or -1 if not available. |
int |
getValidByteCode(int unicode)
Get the byte code point where the character referenced by the Unicode code point unicode is mapped in this font encoding or a
valid replacement code point if invalid. |
int |
getValidByteCode(String name)
Get the code point where the character referenced by the Adobe glyph name name is mapped in this font encoding or a valid
replacement. |
boolean |
isFontSpecificEncoding()
Answer true if this encoding is specific to and embedded into the font program itself so that we can not derive any mapping information from here. |
| Methods inherited from class de.intarsys.pdf.encoding.Encoding |
|---|
create, createReader, createWriter, decode, encode, encode, getDifferenceGlyphName, getDifferenceUnicode, getStandard, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static FontSpecificEncoding UNIQUE
| Constructor Detail |
|---|
public FontSpecificEncoding()
| Method Detail |
|---|
public int getByteCode(String name)
Encodingname is mapped in this font encoding or -1 if not valid.
name must be a valid Adobe glyph name. The code point is a
value from 0...255. If the glyph is not found, -1 is returned.
getByteCode in class Encodingname - The glyph name.
public int getByteCode(int unicode)
Encodingunicode is mapped in this font encoding or -1
if invalid.
unicode must be a valid Unicode code point. The returned
code point is a value from 0...255. If the Unicode code point is not
valid or not mapped, -1 is returned.
getByteCode in class Encodingunicode - The Unicode code point to look up.
public COSObject getCosObject()
Encodingdoc.
getCosObject in class Encodingdoc.public boolean isFontSpecificEncoding()
Encoding
isFontSpecificEncoding in class Encodingpublic String getGlyphName(int codePoint)
Encoding
getGlyphName in class EncodingcodePoint - The encoded byte code point.
codePoint or ".notdef".public String getName()
getName in class Encodingpublic int getUnicode(int byteCode)
EncodingbyteCode or -1 if not available.
getUnicode in class EncodingbyteCode - The encoded code point
byteCode or -1.public int getValidByteCode(String name)
Encodingname is mapped in this font encoding or a valid
replacement.
name must be a valid Adobe glyph name. The code point is a
value from 0...255. If the glyph is not found, a valif replacement code
point is returned instead (for example the space character).
getValidByteCode in class Encodingname - The glyph name.
public int getValidByteCode(int unicode)
Encodingunicode is mapped in this font encoding or a
valid replacement code point if invalid.
unicode must be a valid Unicode code point. The returned
code point is a value from 0...255. If the Unicode code point is not
valid or not mapped, a valid code point is returned is returned (for
example the space character).
getValidByteCode in class Encodingunicode - The Unicode code point to look up.
|
intarsys PDF library API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||