|
|
|
|
|
by Someone
1951 days ago
|
|
Within Bézier, there’s cubic (postscript, Adobe type 1) and quadratic (TrueType, Apple’s long dead QuickDraw GX). I think the relation between control points and curve shapes is easier to understand for quadratic ones (and, of course, still easier for linear Bézier curves, aka “line segments”) For fonts, I think we still live in a mixed world that’s very slowly moving towards TrueType. For 2D graphics, PDF with its cubic Bézier curves has a bit of an edge. Overall, I don’t see a clear winner. Because of that, some graphics APIs support both. https://developer.apple.com/documentation/coregraphics/cgmut..., for example, has addCurve to add a cubic, and addQuadCurve to add a quadratic Bézier curve to a path. https://docs.microsoft.com/en-us/dotnet/api/system.drawing.g... only does cubic Bézier curves, I think, but https://docs.microsoft.com/en-us/dotnet/api/system.drawing.g... supports TrueType fonts, so the code can draw quadratic Bézier curves. |
|