Package com.tom_roush.fontbox.cff
Class CFFEncoding
- java.lang.Object
-
- com.tom_roush.fontbox.encoding.Encoding
-
- com.tom_roush.fontbox.cff.CFFEncoding
-
- Direct Known Subclasses:
CFFExpertEncoding,CFFStandardEncoding
public abstract class CFFEncoding extends Encoding
A CFF Type 1-equivalent Encoding. An encoding is an array of codes associated with some or all glyphs in a font
-
-
Field Summary
-
Fields inherited from class com.tom_roush.fontbox.encoding.Encoding
nameToCode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(int code, int sid)For use by subclasses only.voidadd(int code, int sid, String name)Adds a new code/SID combination to the encoding.StringgetName(int code)Returns the name of the glyph for the given character code.-
Methods inherited from class com.tom_roush.fontbox.encoding.Encoding
addCharacterEncoding, getCode, getCodeToNameMap
-
-
-
-
Method Detail
-
getName
public String getName(int code)
Returns the name of the glyph for the given character code.
-
add
public void add(int code, int sid, String name)Adds a new code/SID combination to the encoding.- Parameters:
code- the given codesid- the given SID
-
add
protected void add(int code, int sid)For use by subclasses only.
-
-