msdfgl icon indicating copy to clipboard operation
msdfgl copied to clipboard

Convert cubics to quadratics

Open behdad opened this issue 3 years ago • 3 comments

This is great work. Congratulations!

For cubic-to-quadratic conversion I suggest you lift the cu2qu algorithm. I have described it here:

https://github.com/googlefonts/cu2qu/issues/10

Cheers

behdad avatar Nov 25 '20 18:11 behdad

Thanks for the link and the feedback!

I took a quick read and it looks like something that could be quite easily implemented in msdfgl. I'll take a closer look when I reach my next free'ish timeslot.

nyyManni avatar Dec 01 '20 06:12 nyyManni

For your use-case you don't need the last step:

  - After choosing corners, position the on-curve points to lie in the middle
of the neighboring corners.  Ie, don't encode them in the glyf encoding.

Cheers.

behdad avatar Dec 08 '20 17:12 behdad

Thanks for the link and the feedback!

I took a quick read and it looks like something that could be quite easily implemented in msdfgl. I'll take a closer look when I reach my next free'ish timeslot.

... 2 years, 9 months, 26 days later

Is it an appropriate time to ask about this again? :smile:

BornTactical avatar Sep 28 '23 03:09 BornTactical