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
RepackerError and Traceback from uharfbuzz #3260
Comments
Just to be specific about the versions: fontTools 4.41.1 as well as 4.42.0 (installed with Harfbuzz 8.1.1 and uharfbuzz 0.37.2) don't produce the error so it's likely a change introduced since these releases. Thanks! Also we haven't figured out how to set the USE_HARFBUZZ_REPACKER option to either value at build or run time. Until a fix is available, slow (the HB packer rather than the python fallback) is OK with us if it doesn't break a build. Any pointers? |
the other exceptions are:
and
|
this in particular looks like a regression from #3241, I'll look into this |
basically one has to set that option in the TTFont.cfg dict before compiling with TTFont.save, however one problem might be that you do not have a TTFont instance yet because a new one is created in ufo2ft. |
another option you have to avoid using hb-repacker with fonttools is making sure uharfbuzz is not installed in the environment you are building the font... |
I fixed the AttributeError exception that was caused by changes in #3241, but I can keep this one open in case we want to investigate the reason for the harfbuzz RepackerError. |
Thanks! Confirmed we're again able to build, though with the fallback warning. |
I'll look into the repacking failure on the harfbuzz side. |
Reproduced and got logs from the repacker attempt. It fails trying to repacking the 16bit space (non extension lookups) so I suspect that our extension promotion logic might be miscounting and leaving too much stuff in the 16 bit space. |
Ok tracked this down and found an approach to fix it:
|
During extension promotion when multiple lookups refer to a shared subtable node create and reuse a single extension subtable for it. Fixes: fonttools/fonttools#3260.
During extension promotion when multiple lookups refer to a shared subtable node create and reuse a single extension subtable for it. Fixes: fonttools/fonttools#3260.
Fix just landed in harfbuzz. |
Filed issue in uharfbuzz to get a release which includes the fix: harfbuzz/uharfbuzz#176 |
uharfbuzz has now pulled the fix into the latest release (v0.37.3), see: harfbuzz/uharfbuzz#176 (comment) |
Doesn't happen on recent releases, but with latest master I get:
followed by two further exceptions.
To duplicate, download ttf and fea from https://www.dropbox.com/sh/s38r0y2t2bjkg1o/AACKWYG8H_D_0iJ9P7Q0HEbOa?dl=0 and try
The text was updated successfully, but these errors were encountered: