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