News for hackers. Stuff that matters.
Re:SVG passthrough precision by ResNet on Monday April 18, 2022 @01:02PM (#31073432)
This is a nice dive. I've also came across some SVG libraries that end up converting SVG path coordinates from original floating point values into integers, and then apply a scale/transform to that path to get the desired final size. Presumably this is/was faster for complicated paths or other elements.
Re:SVG passthrough precision by klodolph on Monday April 18, 2022 @02:36PM (#31074689)
There are various reasons why integers are convenient to work with, it's not all about performance.