googlefonts / sleipnir

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

Draw a basic icon svg at the default location #3

Closed rsheeter closed 6 months ago

rsheeter commented 6 months ago

Produce svgs, albeit not the ones we ultimately want. Ex https://codepen.io/rs42/pen/ZEZYwem. This is for two reasons:

  1. because hb-draw (source of the expected value) applies substitutions while Skrifa does not.
  2. because hb-draw and skrifa handle a pointstream that starts with an off-curve differently
    • Skrifa matches FreeType and takes the last point as the start
    • hb-draw walks forward to find the first oncurve then continues on and uses the buffered off-curve at the end
      • conceptually walks all the points starting with the first oncurve it finds, wrapping if that wasn't the first

Three tests are marked ignore because of ^.