Class Type1CharStringParser


  • public class Type1CharStringParser
    extends 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 Detail

      • Type1CharStringParser

        public Type1CharStringParser​(String fontName,
                                     String glyphName)
        Constructs a new Type1CharStringParser object.
        Parameters:
        fontName - font name
        glyphName - glyph name
    • Method Detail

      • parse

        public List<Object> parse​(byte[] bytes,
                                  List<byte[]> subrs)
                           throws 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:
        IOException - if an error occurs during reading