public abstract class CFFEncoding extends Encoding
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,java.lang.String> |
codeToName |
nameToCode
Constructor and Description |
---|
CFFEncoding()
Package-private constructor for subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(int code,
int sid)
For use by subclasses only.
|
void |
add(int code,
int sid,
java.lang.String name)
Adds a new code/SID combination to the encoding.
|
java.lang.String |
getName(int code)
Returns the name of the glyph for the given character code.
|
addCharacterEncoding, getCode, getCodeToNameMap
public java.lang.String getName(int code)
public void add(int code, int sid, java.lang.String name)
code
- the given codesid
- the given SIDprotected void add(int code, int sid)