Google publishes 67 symbols per cut (auto_awesome, insights, tips_and_updates, battery_50 ...) with width and height but no viewBox, their paths in 24 units, or 20 in the 20 cut, where every other symbol draws in `0 -960 960 960`. bin/fetch-symbols dropped the size so CSS decides it, which left these with no coordinate system: `<x-icon>` drew them at 1:1, whole only at exactly 24px and cut off or misplaced at any other size, the 20 cut every small button uses included. normalise() now turns a file's width and height into its viewBox when it has none, before dropping them. The 268 files are regenerated from Google's originals at the recorded SOURCE commit with the fixed step (each shipped file matched the old step's output first; the other 16,272 do not change), and every path lies inside its new viewBox. IconTest checks that each shipped symbol has a viewBox and that `<x-icon name="auto_awesome">` renders in 20 units at size 16 and in 24 at size 32; both fail without the change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 line
1.7 KiB
XML
1 line
1.7 KiB
XML
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.896 12.625Q5.167 12.625 4.656 12.115Q4.146 11.604 4.146 10.875V9.229Q4.146 8.5 4.656 7.99Q5.167 7.479 5.896 7.479H14.146Q14.875 7.479 15.385 7.99Q15.896 8.5 15.896 9.229V10.875Q15.896 11.604 15.385 12.115Q14.875 12.625 14.146 12.625ZM10.021 4.188Q9.667 4.188 9.406 3.927Q9.146 3.667 9.146 3.312V2.542Q9.146 2.188 9.406 1.927Q9.667 1.667 10.021 1.667Q10.375 1.667 10.635 1.927Q10.896 2.188 10.896 2.542V3.312Q10.896 3.667 10.635 3.927Q10.375 4.188 10.021 4.188ZM14.979 5.938Q14.708 5.688 14.708 5.333Q14.708 4.979 14.979 4.708L15.271 4.417Q15.521 4.167 15.875 4.167Q16.229 4.167 16.5 4.417Q16.75 4.688 16.75 5.042Q16.75 5.396 16.5 5.646L16.188 5.958Q15.938 6.208 15.583 6.208Q15.229 6.208 14.979 5.938ZM10.021 18.333Q9.667 18.333 9.406 18.073Q9.146 17.812 9.146 17.458V16.688Q9.146 16.333 9.406 16.073Q9.667 15.812 10.021 15.812Q10.375 15.812 10.635 16.073Q10.896 16.333 10.896 16.688V17.458Q10.896 17.812 10.635 18.073Q10.375 18.333 10.021 18.333ZM15.271 15.667 14.958 15.375Q14.708 15.125 14.708 14.771Q14.708 14.417 14.979 14.146Q15.229 13.896 15.583 13.896Q15.938 13.896 16.208 14.146L16.5 14.458Q16.75 14.708 16.75 15.062Q16.75 15.417 16.5 15.667Q16.229 15.938 15.875 15.938Q15.521 15.938 15.271 15.667ZM3.854 5.938 3.542 5.646Q3.292 5.396 3.292 5.042Q3.292 4.688 3.562 4.417Q3.812 4.167 4.167 4.167Q4.521 4.167 4.792 4.417L5.083 4.729Q5.333 4.979 5.333 5.333Q5.333 5.688 5.083 5.938Q4.812 6.208 4.458 6.208Q4.104 6.208 3.854 5.938ZM3.562 15.667Q3.292 15.417 3.292 15.062Q3.292 14.708 3.562 14.438L3.854 14.146Q4.104 13.896 4.458 13.896Q4.812 13.896 5.083 14.146Q5.333 14.417 5.333 14.771Q5.333 15.125 5.083 15.375L4.771 15.688Q4.521 15.938 4.167 15.938Q3.812 15.938 3.562 15.667Z"/></svg> |