public abstract class CFFEncoding extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CFFEncoding.Entry
This class represents a single code/SID mapping of the encoding.
|
Constructor and Description |
---|
CFFEncoding() |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(CFFEncoding.Entry entry)
Add a single entry.
|
int |
getCode(int sid)
Returns the code corresponding to the given SID.
|
List<CFFEncoding.Entry> |
getEntries()
A list of all entries within this encoding.
|
int |
getSID(int code)
Returns the SID corresponding to the given code.
|
boolean |
isFontSpecific()
Determines if the encoding is font specific or not.
|
void |
register(int code,
int sid)
Adds a new code/SID combination to the encoding.
|
public boolean isFontSpecific()
public int getCode(int sid)
sid
- the given SIDpublic int getSID(int code)
code
- the given codepublic void register(int code, int sid)
code
- the given codesid
- the given SIDpublic void addEntry(CFFEncoding.Entry entry)
entry
- the entry to be addedpublic List<CFFEncoding.Entry> getEntries()
Copyright © 2008–2018. All rights reserved.