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
varLib merger dies on CFF->CFF2 conversion #3488
Comments
The problem seems to be coming when calling fonttools/Lib/fontTools/varLib/cff.py Lines 122 to 128 in e724acd
|
The problem seems related to the presence of multiple FontDicts in an FDArray. I wonder if we're not descending into the FDArray properly when doing some conversion somewhere. (This is a guess, I know very little about CFF fonts.) |
Here's an interesting thing. If I change the code in cff.py (line 95) to: for fontDict in fdArray:
fontDict.setCFF2(True)
print(fontDict.Private, fontDict.Private.rawDict.keys()) it dies. But if I say: for fontDict in fdArray:
print(fontDict.Private, fontDict.Private.rawDict.keys())
fontDict.setCFF2(True) it succeeds. |
That suggest some lazy-loading is not happening? |
I'm trying to merge some OTFs to VF because reasons. The first thing that
varLib.merge
does is convert the default master CFF table to a CFF2. With this font:dies with
The text was updated successfully, but these errors were encountered: