Is a path cubic or quadratic?

Is there a quicker way to detect this than running through all path nodes and looking for a node with type QCURVE?

The path has hasTrueTypeOutline() and hasTrueTypeCurve() but they iterate the path, too. There is no global setting. it is simply determined by the node type. And it could be possible ot have cubic and quadratic segments in the same path.

Thanks Georg. Super helpful.

Can I ask where this is documented?

You could find it in the header files in Glyphs 3.app/Contents/Frameworks/GlyphsCore.framework/Versions/A/Headers

And I try to add things that are of interest to https://docu.glyphsapp.com/ and https://docu.glyphsapp.com/Core/index.html

1 Like

Thank you!