Ilya Zelker wrote:
Hi,

I have an svg file that is displayed in JSVGCanvas derived class. Does anyone know, what is the best way to keep text size the same while performing zoom in / zoom out operations.

There are lots of options, they essentially all start with capturing zoom events in the DOM ("SVGZoom" - dispatched on the root svg node).

    The the easiest is if all your text is in one group
(say a single layer) you can just change the font-size attribute
on the group after looking at the currentScale attribute.

    The harder (but more flexible) way is to use the SAC (Simple Api
for CSS) to adjust a CSS rule that sets the font-size attribute.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to