Cant read styles with "em" units from svg files

Bug #1036010 reported by John Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
John Smith

Bug Description

In function sp_repr_css_merge_from_decl (src/xml/repr-css.cpp)

Attempt to read "font-size:2.1em" fails, whereas "font-size:2.1cm" works ok.
Possibly to do with the "e" being interpreted as part of a number.

Tags: fonts units
su_v (suv-lp)
tags: added: fonts units
Revision history for this message
su_v (suv-lp) wrote :

Possibly related (missing support for 'em' unit):
Bug #168858 (sf1784817) “font size specified in em too big”
Bug #168845 (sf1780464) “<text> position attributes should handle relative units”

John Smith (john-smithi)
summary: - Cant read styles with "em" units from preferences
+ Cant read styles with "em" units from svg files
Revision history for this message
John Smith (john-smithi) wrote :

Fix committed r11605.
Any style with "e" after a number is being treated as scientific "e" notation and failing to write the correct style. Workaround fix is to check for "em" and "ex" units and process properly.

Changed in inkscape:
assignee: nobody → John Smith (john-smithi)
status: New → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.