When editing glyphs with quadratic curves, Glyphs keeps adding cubic ones

I’m adding glyphs to a font that uses quadratic curves. I drew something, and converted it to quadratic, but if I add any new segment Glyphs will always add it as cubic. So I have to always run the cubic to quadratic conversion after editing the glyph.

Glyphs should either detect this a quadratic glyph and always work in quadratic mode (assuming it has such a thing) or have a setting per font/glyph to tell it to do so.

That is a know limit. The all tools that add paths can only add cubic. I don’t really know how a proper quadratic curve input might look like.
What I can do is automatically convert the curve to quadratic when there are any quadratics in the glyph. I would not add a flag or such. So you need to manually convert the first curve segment.

I guess that would work.

Keep in mind that there are (future) extensions to the glyf table that support mixed cubic and quadratic curves …

@khaled you could just keep the added curves as cubics, Glyphs will convert them when you export a TTF. Or do you actually draw with quadratic curves? I find them tedious to modify.

There are very good reasons to draw in TT. It allows for different approaches in interpolation (e.g. with a rounding axis).

1 Like

Seconding this, I too have a project with mixed outline types in some glyphs (according to this thread) and would not love to get the entire glyph converted if i deliberately set certain segments only to quadratic.

I made it in a way that it only does the conversation if there are only TrueType curves in that layer.

1 Like

To “convert” a cubic curve to quadratic, you can try Delete BCP or Make Quadratic Curve. Or Make Cubic Curve to convert from quad to cub. All of these leave the non-selected part of the contour untouched.

And it is converting only the newly added segment. I’m thinking about a more deliberate solution.

Thanks Tim, I am aware of this script, however I use an own tool that converts the curves with a specified count of offcurve points, it uses a bit more elaborate algorithms to keep the curve shape intact as good as possible and does this on all masters to keep compatibility.

If you use your own tool then why does it convert the whole contour even if you want only one segment?

I never said that (?) ¯_(ツ)_/¯

Your described a problem, I tried to offer a solution to your problem, and then you’re telling me that you’ve already had a better solution anyway. That’s ridiculous. Don’t be dishonest.

Huh? What are you up to, Tim?

All I wrote above is that I don’t want Glyphs to turn my outlines entirely into quadratics, if I deliberately convert only particular segments to quadratics. I understood Georg’s idea as that he would make it convert the entire glyph if it sees some quadratic segments and I just wrote that I would not favor that approach.

Maybe you try to read better before starting to attack others.