Type1CharStringParser
Date: 2017-05-25

org.apache.fontbox.cff

## Class Type1CharStringParser

- java.lang.Object
- - org.apache.fontbox.cff.Type1CharStringParser

-     public class Type1CharStringParser
      extends java.lang.Object

  This class represents a converter for a mapping into a Type 1 sequence.
  See Also:
    "Adobe Type 1 Font Format, Adobe Systems (1999)"

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Type1CharStringParser(java.lang.String fontName, java.lang.String glyphName)` Constructs a new Type1CharStringParser object.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<java.lang.Object>` | `parse(byte[] bytes, java.util.List<byte[]> subrs)` The given byte array will be parsed and converted to a Type1 sequence.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Type1CharStringParser

          public Type1CharStringParser(java.lang.String fontName,
                               java.lang.String glyphName)

      Constructs a new Type1CharStringParser object.
      Parameters:
        `fontName` - font name
        `glyphName` - glyph name

  - ### Method Detail

    - #### parse

          public java.util.List<java.lang.Object> parse(byte[] bytes,
                                               java.util.List<byte[]> subrs)
                                                 throws java.io.IOException

      The given byte array will be parsed and converted to a Type1 sequence.
      Parameters:
        `bytes` - the given mapping as byte array
        `subrs` - list of local subroutines
      Returns:
        the Type1 sequence
      Throws:
        `java.io.IOException` - if an error occurs during reading