Package org.apache.fontbox.cff
Class Type2CharStringParser
java.lang.Object
org.apache.fontbox.cff.Type2CharStringParser
This class represents a converter for a mapping into a Type2-sequence.
- Author:
- Villu Ruusmann
-
Constructor Summary
ConstructorsConstructorDescriptionType2CharStringParser
(String fontName, int cid) Constructs a new Type1CharStringParser object for a CID-Keyed font.Type2CharStringParser
(String fontName, String glyphName) Constructs a new Type1CharStringParser object for a Type 1-equivalent font. -
Method Summary
-
Constructor Details
-
Type2CharStringParser
Constructs a new Type1CharStringParser object for a Type 1-equivalent font.- Parameters:
fontName
- font nameglyphName
- glyph name
-
Type2CharStringParser
Constructs a new Type1CharStringParser object for a CID-Keyed font.- Parameters:
fontName
- font namecid
- CID
-
-
Method Details
-
parse
public List<Object> parse(byte[] bytes, byte[][] globalSubrIndex, byte[][] localSubrIndex) throws IOException The given byte array will be parsed and converted to a Type2 sequence.- Parameters:
bytes
- the given mapping as byte arrayglobalSubrIndex
- array containing all global subroutineslocalSubrIndex
- array containing all local subroutines- Returns:
- the Type2 sequence
- Throws:
IOException
- if an error occurs during reading
-