public class Type2CharStringParser extends Object
Constructor | Description |
---|---|
Type2CharStringParser(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.
|
Modifier and Type | Method | Description |
---|---|---|
List<Object> |
parse(byte[] bytes,
byte[][] globalSubrIndex,
byte[][] localSubrIndex) |
The given byte array will be parsed and converted to a Type2 sequence.
|
public Type2CharStringParser(String fontName, String glyphName)
fontName
- font nameglyphName
- glyph namepublic Type2CharStringParser(String fontName, int cid)
fontName
- font namecid
- CIDpublic List<Object> parse(byte[] bytes, byte[][] globalSubrIndex, byte[][] localSubrIndex) throws IOException
bytes
- the given mapping as byte arrayglobalSubrIndex
- array containing all global subroutineslocalSubrIndex
- array containing all local subroutinesIOException
- if an error occurs during readingCopyright © 2008–2018. All rights reserved.