org.apache.fontbox.cff.charset
abstract public class: CFFCharset [javadoc |
source]
java.lang.Object
org.apache.fontbox.cff.charset.CFFCharset
Direct Known Subclasses:
EmbeddedCharset, Format1Charset, Format0Charset, CFFISOAdobeCharset, PDFCharset, CFFExpertSubsetCharset, CFFExpertCharset
This is the superclass for all CFFFont charsets.
- author:
Villu
- Ruusmann
- version:
$
- Revision$
Nested Class Summary: |
---|
public static class | CFFCharset.Entry | This class represents a single SID/name mapping of the charset. |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.fontbox.cff.charset.CFFCharset Detail: |
public List<Entry> getEntries() {
return entries;
}
A list of all entries within this charset. |
public String getName(int sid) {
for(Entry entry : this.entries)
{
if(entry.entrySID == sid)
{
return entry.entryName;
}
}
return null;
}
Returns the name corresponding to the given SID. |
public int getSID(String name) {
for(Entry entry : this.entries)
{
if((entry.entryName).equals(name))
{
return entry.entrySID;
}
}
return -1;
}
Returns the SID corresponding to the given name. |
public boolean isFontSpecific() {
return false;
}
Determines if the charset is font specific or not. |
public void register(int sid,
String name) {
entries.add(new Entry(sid,name));
}
Adds a new SID/name combination to the charset. |