Unexpected parsing error
Hello, (and thank you so much for this module!)
I have been evaluating some BDF utilities, mainly using the Xorg BDF fonts as test cases, and I have encountered a parsing error from bdflib that I have questions about.
Specifically, there is a FontForge Python script that pre-processes BDF input before doing its own thing, and that script's modified BDF output file raises the ParseError Expected b'ENDPROPERTIES', not b'ENCODING'
I'm not clear where the problem is. As far as I can tell, the only thing that the script does to modify the input BDF in that header / pre-CHARS section of the file is to rearrange things and add a "generated by FontForge" line. So I am puzzling over where the problem originates.
As an example, compare the original source file here: https://gitlab.freedesktop.org/xorg/font/bitstream-75dpi/-/blob/master/charR18.bdf with the modified version attached here.
I know that it may well be the script mangling something; but I'm trying to troubleshoot that, and I am not seeing why the bdflib parser would be raising an error, at least in the properties block. So any help in determining if FontForge itself is generating invalid output, or the script is, or if a tweak to the parser might clear up the issue, would be most appreciated.