font size specified in em too big

Bug #168858 reported by Nmailhot
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Unassigned

Bug Description

The attached files highlight a few problems importing visio 2003-created
SVGs in http://inkscape.modevia.com/win32/Inkscape0708300306.7z
(30-Aug-2007 inkscape win32 snapshot) :

1. text elements get out of their container (ethernet elements)

2. the white background of some text blocks is not adjusted to the text
blocks themselves

Tags: fonts styles svg
Revision history for this message
Nmailhot (nmailhot) wrote :

Originator: YES

File Added: visio-png.png

Revision history for this message
Nmailhot (nmailhot) wrote :

Originator: YES

File Added: visio-svg.svg

Revision history for this message
Nmailhot (nmailhot) wrote :

Originator: YES

File Added: inkscape-png.png

Revision history for this message
Nmailhot (nmailhot) wrote :

Originator: YES

File Added: inkscape-svg.svg

Revision history for this message
Bryce Harrington (bryce) wrote :

Could you test this issue with inkscape 0.46pre0 or newer and let us know if the issue still exists?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Gail (gbanaszk) wrote :

Yes, I just realized I was assigned to this, so I will try to look at it once Nmailhot confirms it (short on time = relying on others to check).

Revision history for this message
ScislaC (scislac) wrote :

Is the background supposed to resize?

Also, what font is being used in the visio example? Both Firefox 3, and Inkscape render the svg file from visio differently than the png you attached.

jazzynico (jazzynico)
Changed in inkscape:
status: Incomplete → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

The exported SVG file uses CSS styles. The texts class is defined as: st3 {fill:#000000;font-family:Arial;font-size:0.833336em}.
Replacing the font-size attribute with 9px seems to fix give a correct result, but em values doesn't seem to be supported.

Changed in inkscape:
importance: Undecided → Low
tags: added: styles svg
su_v (suv-lp)
tags: added: fonts
Revision history for this message
Beluga (buovjaga) wrote :

The problems described are now gone.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Revision history for this message
jazzynico (jazzynico) wrote :

Tested on Windows XP (32-bit):
Partially fixed in Inkscape 0.91 ("Prolongement" and "téléphonique" overlap).
Totally fixed in 0.92.x rev. 15044.

Changed in inkscape:
assignee: Gail (gbanaszk) → nobody
milestone: none → 0.92
status: Confirmed → Fix Committed
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.