Thomas,


I already had text in one single layer, so capturing "SVGZoom" event and changing font for that layer using current scale as you suggested worked out pretty good.

Thanks a lot,
Ilya

At 10:16 AM 8/18/2003 -0400, you wrote:
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]


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



Reply via email to