Description
I get this with the attached file on page 3:
java.io.IOException: Found Token[kind=NAME, text= ] but expected LITERAL at org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:727) at org.apache.fontbox.type1.Type1Parser.readCharStrings(Type1Parser.java:658) at org.apache.fontbox.type1.Type1Parser.parseBinary(Type1Parser.java:522) at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:64)
The cause is that the font has a few NULL bytes (see attached font file). These are regarded as literals.
My solution would be to skip them in Type1Lexer them like we skip spaces, but to put out a warning.
WDYT?