Unable to edit .ufo file in RoboFont after editing it in Glyphs

I saved a .ufo file in RoboFont and transferred it to Glyphs without any issues. However, when I tried to bring the file back to RoboFont, I couldn’t open it. I was only able to open the file after removing all the guidelines. Are there any solutions to this problem?

That is a bug in RoboFont then. Those attributes are all valid and in the spec for years: Glyph Interchange Format

Going by the error message alone, “invalid value [singular] for attribute guidelines” (rather than “invalid guideline attribute values”), could it be that it is seeing the array of guideline attributes in a place where it’s expecting an array of guidelines? Not sure how that would happen, but unless the error message is just really poorly worded, that’s what it seems to suggest…

Can you show the content of one of the .glif file that has guides.
And can you remove all but one guidelines from the files and also remove the identifier tag from that guideline? And try to open the file like this?

Hey Georg,
I had a look at a file on the RoboFont Discord, and it’s an issue with Glyphs export.
In the particular case of a guideline with both x and y values you cannot omit the angle.

(it’s specified at the bottom of the paragraph)

From the RF thread on this, Tal Leming more or less clarifies it:

Tal Leming Today at 10:11 AM

It is mandatory.
If the x and y are defined, but the angle is not, what is the angle?

Tal Leming Today at 10:14 AM

The spec could have been worded more clearly. It defines when it is acceptable to omit the angle, but doesn’t state explicitly that it is mandatory. That’s my mistake.

The problem is that the spec was changed a year or so ago. I adjusted the export accordingly (it added that the angle defaults to 0; it was a welcome improvement over the previous state). But in order to keep backwards compatibility with existing files the change was reverted. And I changed back to the previous behavior two month ago. So Glyphs 3.3 should write the guidelines correctly.

1 Like