public interface Encoding
PsEncoding
and Cmap
.Modifier and Type | Field and Description |
---|---|
static char |
INVALID_UNICODE_CHAR
The invalid Unicode character, suitable as a return value in methods
that need to return an invalid character.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asPostScript(Encoding baseEncoding)
Returns this Encoding as a String in the format expected by PostScript.
|
boolean |
canEncode(int codePoint)
Determine whether a given Unicode code point can be encoded by this
Encoding.
|
int |
decodeCharacter(int encodedIndex)
Finds the Unicode code point, if any, for a given encoding index.
|
int |
encodeCharacter(int codePoint)
Finds the encoding index for a given Unicode codepoint.
|
int |
getFirstIndex()
Returns the lowest glyph index used in this encoding.
|
int |
getLastIndex()
Returns the highest glyph index used in this encoding.
|
java.lang.String |
getName()
Return the name of this Encoding.
|
boolean |
isPredefinedPdf()
Indicates whether this is a predefined PDF encoding.
|
boolean |
isPredefinedPs()
Indicates whether this is a predefined PostScript encoding.
|
static final char INVALID_UNICODE_CHAR
int encodeCharacter(int codePoint)
codePoint
- The Unicode codepoint which should be encoded.int decodeCharacter(int encodedIndex)
encodedIndex
- The encoded index which should be decoded into a
Unicode code point.INVALID_UNICODE_CHAR
if there is none.java.lang.String asPostScript(Encoding baseEncoding)
baseEncoding
- The encoding, if any, on which this encoding is
based.
If this encoding is similar to another encoding that will be in the same
output document, setting baseEncoding to that Encoding will allow the
return value of this method to include only the differences between the
two encodings.
Set this to null if this encoding is not based on some other encoding.java.lang.String getName()
boolean isPredefinedPs()
boolean isPredefinedPdf()
int getFirstIndex()
int getLastIndex()
boolean canEncode(int codePoint)
codePoint
- The Unicode code point to be tested.codePoint
.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.