-
Notifications
You must be signed in to change notification settings - Fork 168
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
[waterfallplot] crashes if requested waterfall range overflows #1092
Comments
Playing around with this a bit, it looks like this happens when it can't fit all of the sizes in the specified range onto the first page (e.g. What do you think the right behavior here should be? It seems like it should be pretty easy to pre-calculate and catch this condition, so we could warn about such cases, and then either just quit (with advice to reduce the range), or maybe just start chopping off sizes from the upper end until it fits. I note that specifying a single very large size also causes this problem (e.g. |
I'm for making the use case work. The immediate problem is that
Of course, this does allow the user to do things like |
A quick test implementation of Read's suggestion works, but I'm not sure about the output, it's not very clean and probably not useful (see font.pdf attachment). But, it doesn't crash, so 🤷♂ It seems like the original intent of |
@josh-hadley I think the file you attached is mostly fine (please note the point size label getting lost on page 2). Two other possible solutions:
Thanks for making those experiments! |
It seems like this tool could use some refactoring and reworking in many places, which would be nice to do, but is a bit more of a project. I'm inclined to just go with this simple fix which avoids the crash for the edge case example, and resolve to make deeper changes at a later time. |
Sounds good! Thank you. |
update pdflib/fontpdf.py to address crash closes #1092
update pdflib/fontpdf.py to address crash closes #1092
update pdflib/fontpdf.py to address crash closes adobe-type-tools#1092
waterfallplot
doesn’t like the requested waterfall range to exceed the physical page size.In other words: the waterfall doesn’t cascade.
waterfallplot -wfr 60-70 font.pfa
Test font attached:
font.pfa.zip
The text was updated successfully, but these errors were encountered: