googlefonts / nanoemoji

A wee tool to build color fonts.
Apache License 2.0
239 stars 21 forks source link

Arcs don't normalize well #415

Open rsheeter opened 2 years ago

rsheeter commented 2 years ago

Observed when testing emoji clock faces with nanoemoji part files:

    {
      "normalized": "M0,0 a60 60 0 1 1 1,0 a60 60 0 1 1 -1,0 z",
      "shapes": [
        "M124,64 A60 60 0 1 1 4,64 A60 60 0 1 1 124,64 Z"
      ]
    },
    {
      "normalized": "M0,0 a48.1 48.1 0 1 1 1,0 a48.1 48.1 0 1 1 -1,0 z",
      "shapes": [
        "M112.14,64 A48.14 48.14 0 1 1 15.86,64 A48.14 48.14 0 1 1 112.14,64 Z"
      ]
    },

image

rsheeter commented 2 years ago

Interestingly fixing arc normalization doesn't alter the current implementation results for emoji, presumably because we hit arcs to cubics prior to reuse in the current model.