xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Problems with fonts, and rotation after resizing an SVG
Date Mon, 05 Jun 2006 22:10:02 GMT
Hi Carolina,

"Maria Carolina Arce Terceros" <caroarce@gmail.com> wrote on 06/05/2006 
08:47:27 AM:

> I have two problems regarding resizing an svg. I'm resizing it through
> changing the width and height.
> 
> The first one is that the fonts it contains do also resize instead of
> preserving the size they where created with, this beahaviour is not
> always desirable, is there any way to avoid this?

   The short answer is no, this is the way SVG is designed.
The longer answer is that you can manually compensate for this
by scaling the fonts down as an inverse of the document scale.

> The second problem I have is that I need to rotate one of the graphic
> elements in my svg, if I do not resize it this works fine, but if I
> resize it then the rotate tranformation stops working... 

   This seems very odd, how are you rotating the graphic element?

> I guess this has something to do with the coordinates, but I do not 
understand
> because I'm using a view box, and from what I read this preserves the
> original coordinates... am I wrong? (Maybe the fact that the width and
> the height are greater than the viewbox maximum affects this?)

   The viewbox establishes the coordinate system for the root
of the SVG document.  The exact way this is mapped to the width
and height is controlled by the preserveAspectRatio attribute but
in general the coordinate system is fairly constant.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message