0

So I'd like to have a paragraph of text which responds to changes in window size by adjusting the font or zoom such as it looks as big as possible while fitting into screen. I'd prefer to do it using SVG, but DOM and Canvas are options as well. I'm new to these stuff so any tips how should I proceed doing this? Link to similar answered question would be useful too, I just couldn't find one.

Thank you!

james156
  • 47
  • 2
  • 9
  • For canvas: http://stackoverflow.com/questions/17627893/use-javascript-to-get-maximum-font-size-in-canvas/17631567#17631567 –  Nov 16 '14 at 19:05
  • I think marking this as a duplicate was a bit premature. The OP preferred an SVG solution. Closing it prevents anyone answering with one. Anyway, here is an SVG solution (which happens to be a lot simpler than the Canvas approach). http://jsfiddle.net/1vfcdxx4/ – Paul LeBeau Nov 17 '14 at 01:13
  • Thanks Paul, that's really very simple and useful! – james156 Nov 18 '14 at 20:26

0 Answers0