font size specified in em too big

Bug #168858 reported by Nmailhot on 2007-08-30
Affects Status Importance Assigned to Milestone

Bug Description

The attached files highlight a few problems importing visio 2003-created
SVGs in
(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

Nmailhot (nmailhot) wrote :

Originator: YES

File Added: visio-png.png

Nmailhot (nmailhot) wrote :

Originator: YES

File Added: visio-svg.svg

Nmailhot (nmailhot) wrote :

Originator: YES

File Added: inkscape-png.png

Nmailhot (nmailhot) wrote :

Originator: YES

File Added: inkscape-svg.svg

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
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).

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) on 2010-05-14
Changed in inkscape:
status: Incomplete → Confirmed
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) on 2012-08-13
tags: added: fonts
Beluga (buovjaga) wrote :

The problems described are now gone.

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

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) on 2017-01-10
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers