googlefonts / sleipnir

Memory safe implementations of Google Fonts specific font manipulations.
Apache License 2.0
1 stars 1 forks source link

Two more small path optimizations #26

Closed rsheeter closed 3 months ago

rsheeter commented 3 months ago

Per #18, implement

  1. Use of "smooth" continuations when possible (reflection of prior control over prior end == first control for new quad or cubic of the same type)
  2. Drop the separator between 2d coordinates when the second value is negative
    • because we tend to draw icon svgs with a lot of negative y values this helps a fair bit