Ungroup text get completely wrong size (with scale)

Bug #1518575 reported by Roul P.
This bug report is a duplicate of:  Bug #1733651: after ungroup font-size is removed. Edit Remove
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

If you have text in a group with transform and then ungroup, the text get a completely wrong size.

Tested on Win7-x64 and Linux Mint Inkscape 0.91. I mean this not happen on v0.48.

Revision history for this message
Roul P. (perhelion1) wrote :

This seams have nothing to do with the viewBox

Revision history for this message
Mc (mc...) wrote :

I can reproduce on trunk r14429

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

On OS X 10.7.5:
- not reproduced with Inkscape 0.48.5 r10040
- reproduced with Inkscape 0.91 r13725, 0.91+devel r14481

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.92
tags: added: regression
Revision history for this message
su_v (suv-lp) wrote :

Based on tests with archived builds:
- not reproduced with rev <= 13297,
- reproduced with rev >= 13299;
the regression seems to be related to the refactoring in r13298, r13299:
https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/changes/13299

Revision 13298: Clean up of style code, converting structures to C++ classes. Step 1.
https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/13298

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

Reproduced again on Xubuntu 16.04, lp:inkscape rev. 15545.

But:
Firefox 51 renders the file with very big fonts (like if the texts were ungrouped).
Opera 36 shows the fonts like Inkscape does.

And Squiggle is currently broken on my computer...

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

A few comments:

1. The text is directly inside a <text> element (Inkscape created text is always inside a <tspan>).
2. The font-size is defined in the style attribute of the wrapping group.
3. The group has a scale factor of 80.
4. The ungrouped font-size is 960 px which is the default font-size (12px) times the scaling (80).
5. In ungrouping, the font-size is not being transferred to the style attribute of the text.
6. Setting any property on the text (e.g. fill) causes the text to shrink to 12px high (as expected for text without a defined font-size).

Revision history for this message
su_v (suv-lp) wrote :

On Windows 10:
- re comment 6: batik (batik-squiggle-1.8.jar), Firefox 51.0.1, Chrome 56.0.2924.87, Microsoft Edge 38.14393.0.0, Opera 43.0.2442.991 all render the original SVG file as seen with Inkscape 0.91, 0.92.1, trunk r15546 (before ungrouping).

- re comment 7: Point 6 does not reproduce for me with 0.91, 0.92.0, 0.92.1 and lp:inkscape r15546: the font-size of 960px is stored in the style attribute of each text object after ungrouping, and changing the fill color after ungrouping has no effect on the font size (font size of text remains at 960px) - the test with trunk was repeated using default new prefs (to exclude any interference of current user prefs).

Revision history for this message
U. Fechner (green.berry) wrote :

This also happens for the attached file.
SVG originally generated by Batik Graphics2D SVG Generator 1.8, copied and pasted the relevant text box to a new file.
Inkscape 0.92.2, Windows 7 x64.

Revision history for this message
Patrick Storz (ede123) wrote :
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.