org.apache.fontbox.cff.charset

Class CFFCharset

public abstract class CFFCharset extends Object

This is the superclass for all CFFFont charsets.

Version: $Revision$

Author: Villu Russmann

Nested Class Summary
static classCFFCharset.Entry
This class represents a single name/SID mapping of the charset.
Method Summary
List<CFFCharset.Entry>getEntries()
A list of all entries within this charset.
StringgetName(int sid)
Returns the name corresponding to the given SID.
intgetSID(String name)
Returns the SID corresponding to the given name.
booleanisFontSpecific()
Determines if the charset is font specific or not.
voidregister(int sid, String name)
Adds a new SID/name combination to the charset.

Method Detail

getEntries

public List<CFFCharset.Entry> getEntries()
A list of all entries within this charset.

Returns: a list of all entries

getName

public String getName(int sid)
Returns the name corresponding to the given SID.

Parameters: sid the given SID

Returns: the corresponding name

getSID

public int getSID(String name)
Returns the SID corresponding to the given name.

Parameters: name the given SID

Returns: the corresponding SID

isFontSpecific

public boolean isFontSpecific()
Determines if the charset is font specific or not.

Returns: if the charset is font specific

register

public void register(int sid, String name)
Adds a new SID/name combination to the charset.

Parameters: sid the given SID name the given name

Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.