Live data from Hacker News

FlowType: font-size and line-height based on element width

simplefocus.com

41–50 of 55 posts

Re: FlowType: font-size and line-height based on element width

#41

PLEASE 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…

On another note, you should probably have a "minimum" font size option. Cause right now if I shrink my window to just before it switches media queries removing the box/scroll thingy. And move the scroll thingy to the far right, the font is like size 1px.

While that may not matter as that is a rare case, if I am using a javascript library to control my font size (which is ridiculous if you ask me, but let's ignore that) I don't ever want it to go below 10px's. And there are tons of different Android screen sizes, so this is a possibility.

Re: FlowType: font-size and line-height based on element width

#42

PLEASE 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…

On another note, you should probably have a "minimum" font size option. Cause right now if I shrink my window to just before it switches media queries removing the box/scroll thingy. And move the scroll thingy to the far right, the font is like size 1px. While that may not matter as that is a rare case, if I am using a javascript library to control my font size (which is ridiculous if you ask me, but let's ignore tha…

Immediately following the demo is the 'options' section where it shows you have full control of this.

Re: FlowType: font-size and line-height based on element width

#43

> 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.

the site also impressively shows that this leads to horrendously large font-sizes on a normal (1920x1200) monitor. it looks like medium on steroids, and makes the site scream at me like there's no tomorrow.

I don't know where this 'my-font-is-bigger-than-your-font"-trend started, but I can't wait for it to be over.

Re: FlowType: font-size and line-height based on element width

#44

The line-height part of this is unnecessary / duplicates css behavior. No need to use px. Just set the line-height to the ratio you want in css. p { line-height: 1.45; } and you're done.

Neat. In case anyone else is curious about this: http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-h...

Re: FlowType: font-size and line-height based on element width

#46

PLEASE 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…

I commented on this elsewhere, but this didn't break my zoom at all — although I did have to bump it up to around 200% to start seeing increases. You could argue this is inconvenient, but not quite broken .

Different experience here. Definitely broke my zoom.

Page is absolutely beautiful though.

Re: FlowType: font-size and line-height based on element width

#47

Earlier quoted context omitted.

As a web designer, I despair of users upping the font size and screwing up the words-per-line. Which is why I like Safari's iOS-like pinch-zoom feature. I do wish all browsers would move in that direction and in the end disallow users to arbitrarily up font sizes. That said, crazygringo's point is valid insofar as people do up their font sizes as a matter of course.

Yes, those silly people with bad vision.

Zoom good, font size increasing bad.

Re: FlowType: font-size and line-height based on element width

#48

Earlier quoted context omitted.

As a web designer, I despair of users upping the font size and screwing up the words-per-line. Which is why I like Safari's iOS-like pinch-zoom feature. I do wish all browsers would move in that direction and in the end disallow users to arbitrarily up font sizes. That said, crazygringo's point is valid insofar as people do up their font sizes as a matter of course.

Try setting your text container dimensions in em then.

Yes. As soon as you define everything in em these problems completely cease to exist.

Re: FlowType: font-size and line-height based on element width

#49
Another solution in search of a problem that doesn't exist. If your viewer has a small screen REDUCE YOUR CONTENT. You probably have lots of waffle you don't need anyway. Conversely if they have more screen real estate than brain cells and expand their window to 2000px+ they are stupid. Don't encourage them.

Re: FlowType: font-size and line-height based on element width

#50

Earlier quoted context omitted.

Yes, those silly people with bad vision.

Zoom good, font size increasing bad.

In your opinion.

Most users probably don't want to spend their life panning around a page to see what's going on.

Post reply on HN