Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Handle cusps #6

Open
behdad opened this issue Nov 24, 2015 · 2 comments
Open

Handle cusps #6

behdad opened this issue Nov 24, 2015 · 2 comments

Comments

@behdad
Copy link
Contributor

behdad commented Nov 24, 2015

If any of the curves have a cusp, we should chop at the cusp and convert sides separately.

@behdad
Copy link
Contributor Author

behdad commented Dec 4, 2015

Cusps are where the curve tangent falls to zero. That is, when dx/dt=0 and dy/dt=0. Each of those either has 0, 1, or 2 solutions in the [0,1] range, OR is zero for all values of t. So, the case where both are zero can have 0, 1, 2, or infinitely many solutions. The infinitely-many solution is when the curve is a single point. We can ignore that. For the cases of 1 or 2 cusps, we should just break the curve there. In fact, we should break the curves if any of the master curves has a cusp.

This is extremely unlikely to happen in real fonts though.

@behdad
Copy link
Contributor Author

behdad commented Jun 20, 2020

For the cases of 1 or 2 cusps, we should just break the curve there.

The case of 2 cusps can only happen if the curve is degenerate, ie. a line.

@anthrotype anthrotype removed their assignment Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants