FlowType: font-size and line-height based on element width
21–30 of 55 posts
Re: FlowType: font-size and line-height based on element width
#22The demo impressively shows, that this is not the case for narrow viewports. However, the idea is great.
Re: FlowType: font-size and line-height based on element width
#23Yes, the ideal ("most legible") width for a column of text is ~60 characters, no question. But that's only once you've chosen the most legible font size.
You're supposed to adjust your column width to fit an appropriate number of characters, not adjust the font size to your column width! Adjusting the font size is completely backwards, and worst of all, it's breaking my browser zoom, so it's terrible for usability.
This is a cool demo, but absolutely not something to be used in production. (Sorry to be so negative about it, but the whole project seems based on a misunderstanding of an important design principle.)
Re: FlowType: font-size and line-height based on element width
#24Nice hack, but a accessibility failure. Now the users with poor sight can't increase the font size.
Re: FlowType: font-size and line-height based on element width
#25PLEASE do not use this. Yes, the ideal ("most legible") width for a column of text is ~60 characters, no question. But that's only once you've chosen the most legible font size . You're supposed to adjust your column width to fit an appropriate number of characters, not adjust the font size to your column width! Adjusting the font size is completely backwards, and worst of all, it's breaking my browser zoom , so it's…
Re: FlowType: font-size and line-height based on element width
#26I don't know why all the negative comments here. Just because this solution doesn't fit any of your use cases, it doesn't mean it's a bad solution. There was once I worked on a web app, which was supposed to be viewed on viewports as small as a laptop to viewports as big as a four 57" TVs strung together. Back then, I had to come up with something similar to this to make the content of the TVs visible from a distance…
Re: FlowType: font-size and line-height based on element width
#27> Ideally, the most legible typography contains between 45 and 75 characters per line. The demo impressively shows, that this is not the case for narrow viewports. However, the idea is great.
Re: FlowType: font-size and line-height based on element width
#28So on small screens this will make the font even smaller. This is the wrong solutions. There is a reason why 16pt is the standard font-size. And its no problem to design a responsive website with columns that use 'between 45 and 75 characters per line'.
What exactly makes you say 16pt is the standard font size? For instance, the comment threads on HN are at 12px (9pt), and are entirely legible for me.
Re: FlowType: font-size and line-height based on element width
#29You might want to revisit how the font-size (and line-height) do not always remain in perfect sync to the element-width. What we've here is the ratio of font-size over width-of-the-element. Since font-size doesn't depict width of the font accurately, a percentage change in it doesn't reflect proportionally to revised width of the element(.demo-type). Hope this helps.
We call this resolution stationary rendering internally and use it in our product: https://bubbleideas.com/letters/the-tiger-by-sir-william-bla...
Re: FlowType: font-size and line-height based on element width
#30Couldn't you do it with viewport units?