vellum said:
On Thu, 16 Dec 2004 22:11:16 +1100, vellum <kaver@...45...> wrote:
However, with non-uniform scaling all hell breaks loose. First. Scaling vertically changes the font size as I would expect.
However
if I then try to change the font size to the original size then the font dialog font size is correct but the screen presentation is not.
bulia said:
Yes, because non-uniform scaling cannot be expressed via font size change. Thus it is factored into two parts, as I explained. When you reset font size to original, you remove only the uniform component of the scale; the non-uniform one remains. I think this is logical.
...
So, can you just explain the final result you're trying to achieve?
1. I want to be able to turn a piece of text that has been scaled uniformly or non-uniformly, back to its original state. ie. as it was written.
OK. Your changes allow this to be done with uniformly scaled text. So my original problem is solved.
However, I do not understand what is happening with non-uniform scaling, and it worries me that it simply may be giving the wrong result. The simplest case is where the text is stretched or compressed with no vertical change. The present code changes the font size. Why? I just cannot find anywhere that this is the correct result. As far as I can see the font size should be the same after as before.
XaraX1 operates in the way that I see as correct. It shows two windows for a text object. 1. The font size. 2. The Aspect Ratio which is Width/Height as a percentage. The AR is 100.00 for any font size as initially written.
With non-uniform scaling. The new font size is shown and the AR goes >100 or <100% depending on the scaling. When a piece of text is reselected the new AR and the font size are shown. It is straightforward to set the AR to 100 and the font size to your original font size and you get the original sized text back.
Inkscape cannot not do this.
With horizontal stretching or compressing. With Xarax1 there is no change in font size no matter how much the text width is changed. This is consistent with font size based on letter height. With Inkscape the font size changes with the text width. I think this is wrong.
I do not know the details of what the programs are doing but Xarax seems consistent with
David Bergs idea of "A button "set as 100%" for height and width will
then
adjust the font-size according to the skewed/streched width or the
height
respectively. I think this way all needs are served ;)" seems like a
good
one. Perhaps this could also go in the font dialog ultimately.
I would leave skewed text further down the priority list since I ceratinly do not use it routinely and nobody else has chimed in with this as a need or problem. If I can get non-uniform scaling sorted I'll be happy.
P.S. Perhaps you noticed the bug: the font size reported in the statusbar in selector for a text object is wrong (unchanged) after scale. This is completely unrelated to the above discussion. Just deselect and reselect it again to see the correct font size.
yes.
vellum