SVG-Edit / svgedit

Powerful SVG-Editor for your browser
MIT License
6.33k stars 1.52k forks source link

Font-size Property Restriction: No Support for 'pt' Units #949

Open Moath-Zaghdad opened 5 months ago

Moath-Zaghdad commented 5 months ago

Describe the bug

On version 7.2.0 you can create a new font element and set the font to 10pt or 10px without any issue, however on on 7.3.3 the font-size attribute gets converted to float, note this line https://github.com/SVG-Edit/svgedit/blob/2f9f6e2f717819ef92ac1a9b049005bd2ff4bdbb/packages/svgcanvas/core/undo.js#L192 which use to be https://github.com/SVG-Edit/svgedit/blob/f47759867af79031e5465d660cf7f90314ac4a3f/packages/svgcanvas/undo.js#L192

jfhenon commented 5 months ago

Good point. We need to review the function changeSelectedAttributeNoUndoMethod