custom viewBox + changing fontsize = weird result

Bug #168370 reported by Thomas Holder on 2007-02-16
28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
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!

Bryce Harrington (bryce) wrote :

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

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
linoq (linoelma) wrote :

It just happen to my Inkscape version 0.46

Thomas Holder (speleo3) wrote :

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

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) on 2008-11-27
Changed in inkscape:
assignee: nobody → speleo3
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) on 2009-04-20
Changed in inkscape:
milestone: none → 0.47
ScislaC (scislac) on 2009-11-24
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.

Duplicates of this bug

Other bug subscribers