Hi,
I need to develop an SVG application where the text displayed can be
increased or decreased (to aid people with bad sight).
The resolution of the svg canvas must always remain the same. This
means that only the text increases in size, while the rest of the
elements remain the same size.
The size of the fonts are defined in a separate style sheet.
Is there an elegant way to guarantee that the text, when increased
does not overflow the box which contains it?
My solution to the problem is pretty long and complicated and
unfortunately the methods I used are not yet implemented by the eSVG
viewer.
My method involves:
-> setting a new style class (with a bigger font size) when the
text is to be increased
-> checking that the text does not overflow the box, by using the
getEndOfPosition method, and comparing it to the length of the
container box
-> rolling back to the previous font size style class if the text
does overflow the box
Any help is welcome!
Thank you!
David Williams
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/