Responsive font-size


(stanbits) #1

Would it be possible to have responsive font-size along the lines of FlowType.js http://simplefocus.com/flowtype/ or equivalent

I often find myself having to make a transparent image with some text on it just to make it scalable. Of course this doesn’t work with dynamic Javascript generated text

Unless I’m missing a trick?


(strmiska) #2

you can make text scalable, when you use style=“font-size: 5vw” in innerHTML
example:

<div style="font-size: 2.5vw">this is text</div>

Font size of programatically populated div
(stanbits) #3

thanks, that seems to work

I’ll tinker around with it


(ocultor) #4

that’s useful, thanks