-
Notifications
You must be signed in to change notification settings - Fork 21
Possible false fail in cu2qu: "Glyphs named <x> have different number of segments" #182
Comments
Just to add a couple of possibly useful visuals here, I wanted to show how I tested the number of segments. I am using a script to check segments in all open fonts, for the current glyph. For checking the count of points in general, I am using Prepolator for basic matching, plus something I can't publicly share right now that counts all points, including off-curve points. /nCheck for number & type of segments in /n, across masters: /BCheck for number & type of segments in /n, across masters: |
I've checked out arrowtype/recursive@a149f28 and ran an internal script we have (which leverages The output of that script is below. Everything before the line INCOMPATIBILITY REPORT: are messages that come straight from cu2qu, and the lines after are basically just a summary of the errors that were found. It doesn't seem like my report has any of the glyphs you're getting errors on, so perhaps the UFOs you're using are different from those that have been committed.
|
Hey @miguelsousa, thanks so much for taking a look! I'm really sorry, but I posted a link that was one directory too high (I had posted the correct one, but then updated things, and posted the incorrect one 😑). The masters that have been pre-processed for build are here: And FontMake can be pointed at this designspace: If you're willing to take another look, that would be amazing! Notes: I should have checked & reported the cu2qu version in my project. It is 1.6.5, as well. On your example, I tried to use just cu2qu in this python script to convert pre-processed fonts to quadratics. Strangely, the |
Confirmed, I get no cu2qu errors with the UFOs inside the recursive_mono-varfontprep-2019_07_23-19_14_09 folder. And the variable font builds fine if in the designspace file you disable the two sources that reference |
I ran your script on the UFOs in the mono folder,
and got all the error messages. |
Ohhh wow, I should have tried this but didn't think to. I'll need to confirm later, but I bet some drawings snuck their way into that support layer for the glyphs that were failing. Thanks so much for taking the time to help me find the problem! |
if that's the case, then maybe cu2qu should also print the name of the layer where the incompatible glyphs are. |
If it did print out the designspace source causing the problem, that would be really helpful! |
Okay, I checked for glyphs in the support layer, and sure enough, the failing glyphs had If anyone else faces this issue in the future, I was able to search through a bunch of fonts to pinpoint glyphs in the support layer:
Then, I just deleted these I'll close this issue. I do think it would be great for cu2qu failure messages to point to problem sources/layers if possible, but that might be better as a separate issue. Thanks for all the help, here! |
I'm working on a variable font that has quite a few masters. I'm drawing in RoboFont with cubic-bezier UFOs, and using FontMake to build these into a variable font.
I have been working on this for quite awhile, so I'm fairly familiar with the general usage of FontMake, and I am routinely really impressed with how good a job cu2qu does in converting my cubic drawings to quadratics – even when I'm doing some fairly experimental stuff.
However, I'm butting up against a strange blocker: a few glyphs refused to convert to quadratics, but I can't find anything incompatible about them, let alone anything that supports the error message cu2qu is giving me.
I've found quite a few ways to make sure glyphs are compatible for FontMake & cu2qu:
I have also confirmed that the anchors match in the /n and the /B (the order of them is different in the /a, but based on /n failing, this probably isn't what's triggering the failure).
However, I'm unable to find anything incompatible or unique about the glyphs that are failing this test. I suspect that there must be something I've missed because most glyphs I have checked are building just fine.
Still, because I have confirmed that the number of segments in these glyphs is exactly the same, I think it's likely that the wrong error message is getting triggered by something in my drawings, and this is probably a bug that could be fixed in cu2qu.
Reproducing the issue
Here's a permalink to a set of UFOs and a designspace that gives me this issue:
https://github.com/thundernixon/recursive/tree/a149f28374805800c24168621ce5f52e8283e58c/src/masters/monoUPDATE: here is the correct permalink: https://github.com/thundernixon/recursive/tree/a149f28374805800c24168621ce5f52e8283e58c/src/masters/mono/recursive_mono-varfontprep-2019_07_23-19_14_09
If you clone the repo and checkout commit (
a149f283
), the designspace giving this issue can be built with the following command:(You may need to install FontMake if you don't already have it, but I'm guessing if you're checking this issue, you do).
Thanks for any pointers, questions, and suggestions!
The text was updated successfully, but these errors were encountered: