You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Photoshop and Affinity Designer exports with the width and height expressed in percentage.
The text was updated successfully, but these errors were encountered:
daniele-orlando
changed the title
Fails to detect the right size when SVG height and width are in percentage
Fails to detect the right size when SVG height and width are expressed in percentage
Nov 27, 2017
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?
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.The text was updated successfully, but these errors were encountered: