svgedit icon indicating copy to clipboard operation
svgedit copied to clipboard

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

Open Moath-Zaghdad opened this issue 1 year ago • 1 comments

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

Moath-Zaghdad avatar Jan 29 '24 21:01 Moath-Zaghdad

Good point. We need to review the function changeSelectedAttributeNoUndoMethod

jfhenon avatar Jan 30 '24 07:01 jfhenon