Open madig opened 3 years ago
+1 to anything that limits unnecessary / uninformative diffs
I found an annoying behavior in ufonormalizer: if you try to work around the truncation and give e.g. 20 decimal places, it also changes color strings from <string>0.6,1,0.604,1</string>
into <string>0.5999999999999999778,1,0.60399999999999998135,1</string>
. Argh.
Lol. For those times when you need the exact color that you want.
Do you need to dig into serde to address this here?
Hm, I'm not sure yet. For glif serialization, a simple function might work; for serde serialization, I think you can direct it to use a custom function.
+1 to anything that limits unnecessary / uninformative diffs
I came across this with another serializer today... (╯°□°)╯︵ ┻━┻
Ugh. Which one?
Ugh. Which one?
Emailed details to you. I didn't make the edits. I think that this is ufolib2?
ufonormalizer by default truncates floats to 10 decimal places, leading to diffs between norad and ufonormalizer on e.g. guideline angles.