<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Those two goals seem like good ones, and definitely ones that
must be met when processing a <i>conforming</i> path. At least
off the top of my head it seems difficult to meet both of them
when rendering an arbitrary, potentially <i>non-conforming</i>
path.</p>
<p>For example, suppose your path has an odd number > 1 of cubic
off-curve points between two on-curve points. To render that
you're going to have to do something strange with the last point,
perhaps just treating the last one as if it were a quadratic. But
of course "last" would then be relative to ordering, so if you
reverse the path you would wind up with the quadratic element at
the other end of the sequence.</p>
<p>Are there tricks for this sort of case (currently described as
"undefined") to meet those two goals? <br>
</p>
<p>Skef<br>
</p>
<div class="moz-cite-prefix">On 10/2/23 13:27, Behdad Esfahbod
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF63+7VnT1fQMs2wE26jh9=gAr+uKKyzMzzv_yxAprfQC6pqEQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">As for the Jonathan's suggested in the other thread
to either NOT render the misbehaving contour or fully describe
how to render it, when designing the current model I had two
goals in mind:
<div class="gmail_quote">
<div><br>
</div>
<div> - We should be able to continue to process one point at
a time (keeping a state of course) and calling
moveto/lineto/curveto/qcurveto.</div>
<div><br>
</div>
<div> - Reversing the contour points and ends should produce
the same shape with opposite winding direction.</div>
<div><br>
</div>
<div>Both of these will be violated by the suggested models.
If we can find a way to fully specify the system while
retaining these two properties, that's my preference.
Otherwise, it looks like NOT rendering the contour at all
can be achieved by an extra pass on the points before doing
any drawing for the contour.</div>
<br>
</div>
</div>
</blockquote>
</body>
</html>