Open daniele-orlando opened 7 years ago
I'm not sure what sensible behavior is in this case is. What happens if you have one icon width="120"
and one icon width="100%"
? Or even one with em
? Currently the code seems to assume that everything all widths/heights are simple integers.
Throw an error if there are different units? Convert x% to simply x
? Require fontHeight to be set for %
units and transform x% => x / 100 * fontHeight?
@daniele-orlando you are sure it's not possible to have Photoshop output width/heights as ints?
@nfroidure any idea?
This works as expected
This too
But this doesn't
normalize: true
andfontHeight: 1000
didn't help.Photoshop and Affinity Designer exports with the
width
andheight
expressed in percentage.