custom viewBox + changing fontsize = weird result

Bug #168370 reported by Thomas Holder
28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Thomas Holder

Bug Description

When changing the font size of some selected text in a file with custom
viewBox, a weird unexpected size is the result. If you do not select the
text but just place the cursor inside the text container, changing font
size works!

Example:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
  width="210mm" height="297mm"
  viewBox="0 0 210 297">
  <text x="10" y="30"
    style="font-size:3.3867">Hello World</text>
</svg>

- Select text tool and place cursor on text
- font size is 12, change it to 14 -> works
- select only the word "Hello" and change to 16
  -> Font size jumps to 56.693

A better support for the viewBox attribute in inkscape would be very
desirable!

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

Confirmed as still occurring on Inkscape built January 27, 2008.

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
linoq (linoelma) wrote :

It just happen to my Inkscape version 0.46

Revision history for this message
Thomas Holder (speleo3) wrote :

same effect when text is inside a scaled group (without viewBox)

Revision history for this message
Thomas Holder (speleo3) wrote :

this is only indirectly related to viewBox. A more precize bug description is: When applying styles to some text selection, the parent transform (respectively scale) is not considered.

I figured out how to fix it, please could someone who is familiar with the text-editing code review the patch?

Thomas Holder (speleo3)
Changed in inkscape:
assignee: nobody → speleo3
Revision history for this message
Thomas Holder (speleo3) wrote :

fixed in svn revision 20278.

This does not fix the duplicate bug #168777

Changed in inkscape:
status: Confirmed → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
milestone: none → 0.47
ScislaC (scislac)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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