CFFExpertEncoding
, CFFStandardEncoding
public abstract class CFFEncoding
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
CFFEncoding.Entry |
This class represents a single code/SID mapping of the encoding.
|
Constructor | Description |
---|---|
CFFEncoding() |
Modifier and Type | Method | Description |
---|---|---|
void |
addEntry(CFFEncoding.Entry entry) |
Add a single entry.
|
int |
getCode(int sid) |
Returns the code corresponding to the given SID.
|
java.util.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 java.util.List<CFFEncoding.Entry> getEntries()
Copyright © 2008–2018. All rights reserved.