problem with the text tool and the font size after importing a svg document
Hi,
I have a weird problem, which might be a bug actually, but I am not sure. Maybe anybody can help me.
The problem:
When I load document curves.svg (which you can download from my pc, sorry, but it kind of the only example I have).
do a wget to get it:
wget http://volition.wustl.edu/curves.svg
Then, load it and try to draw some text anywhere. If you use the text tool and type, the letters will be larger than anything on the canvas. As you can see, no matter where you try to type text, the letters will be absurdly big.
So I have to scale down these supersize letters into something around .03 pt. That is the size of the letters that I managed to create (the "200 ms") for example.
The document curves.svg was made with pstoedit to transform a postscript file into svg. That transformation worked fine!
How come that the font size of letters becomes so unusual after I import the file curves.svg?
How can I solve this? Is this a bug, or an error in the loaded file curves.svg.
Thank you very much.
Gijs
On 4/27/05, gijs <stoet@...654...> wrote:
How come that the font size of letters becomes so unusual after I import the file curves.svg?
Because the file has viewbox="0 0 1 1" on the root element. That basically scales it down to 1x1 px size (very small). Remove the viewbox, Ctrl+A, and Ctrl+> several times to scale up.
How can I solve this? Is this a bug, or an error in the loaded file curves.svg.
No it's not a bug. Your drawing is indeed that small, thanks to the viewbox. So when you type 10px text it's 10 times larger than your drawing. The only small bug is that when you click with text tool, the initial cursor size is wrong (small, instead of being the size of the letters which will appear when you type).
On 4/27/05, bulia byak <buliabyak@...155...> wrote:
No it's not a bug. Your drawing is indeed that small, thanks to the viewbox. So when you type 10px text it's 10 times larger than your drawing. The only small bug is that when you click with text tool, the initial cursor size is wrong (small, instead of being the size of the letters which will appear when you type).
Actually I was wrong, another bug is that the reported sizes of objects are big (i.e. ignore viewbox). I thought we fixed this... will have a look now.
participants (2)
-
bulia byak
-
gijs