Class Type3CharProcParser

All Implemented Interfaces:
Closeable, AutoCloseable

public class Type3CharProcParser extends NotSeekableBaseParser
Parses type 3 char procs to obtain glyph widths.
Author:
Sergey Shemyakov
  • Constructor Details

  • Method Details

    • parse

      public void parse() throws IOException
      Parses width from given char proc string.
      Throws:
      IOException - if stream reading error occurred or input stream can't be parsed.
    • getWidth

      public double getWidth()
      Returns:
      width of glyph presented by given char proc or -1 if parsing failed or was not performed.