org.apache.fontbox.cff.encoding

Class CFFEncoding

public abstract class CFFEncoding extends Object

This is the superclass for all CFFFont encodings.

Version: $Revision$

Author: Villu Russmann

Method Summary
intgetCode(int sid)
Returns the code corresponding to the given SID.
Iterator<Integer>getCodes()
Returns an iterator for all codes of this encoding.
intgetSID(int code)
Returns the SID corresponding to the given code.
booleanisFontSpecific()
Determines if the encoding is font specific or not.
voidregister(int code, int sid)
Adds a new code/SID combination to the encoding.

Method Detail

getCode

public int getCode(int sid)
Returns the code corresponding to the given SID.

Parameters: sid the given SID

Returns: the corresponding code

getCodes

public Iterator<Integer> getCodes()
Returns an iterator for all codes of this encoding.

Returns: the iterator for all codes of this encoding

getSID

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

Parameters: code the given code

Returns: the corresponding SID

isFontSpecific

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

Returns: if the encoding is font specific

register

public void register(int code, int sid)
Adds a new code/SID combination to the encoding.

Parameters: code the given code sid the given SID

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