New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cfflib - conversion to version 2 throws an exception #3293
Comments
thanks, yes that looks wrong. Have you got a test font that exposes the bug? |
Yes, I hadn't added it because I am not 100% sure I'm doing things right, but here it is with a code snippet. The font is extracted from a PDF file, it's a subset of HelveticaNeueLTStd-Thin: And this is the code I'm using:
If incidentally you can point me in the right direction (I need to extract glyphs so that I can draw them with an svgPen) it would be great :D |
in that case, there's no need to convert the CFF to CFF2 first. But the fact that you only have a CFF table without the font containing it makes it a bit tricky to decompile the table properly.. It may be possible to hack your way around that, but I have never tried. |
Yes, I'm realising that. I may end up converting the file from the command line with fontforge, it worked for this file... not sure for others :) Thanks anyway! |
In this line:
fonttools/Lib/fontTools/cffLib/__init__.py
Line 450 in 9824263
The code changes the collection it's iterating on, causing an exception.
The text was updated successfully, but these errors were encountered: