DEV Community

Discussion on: Typography basics and best practices for software developers

Collapse
 
dar5hak profile image
Darshak Parikh

This post was a reminder to me that you should read things even if you think you know a lot about the topic. I did know most of this stuff, but the useful ch unit was new to me.

Collapse
 
zeanqin profile image
Zean Qin

Hahaha, same here! I only came across it a couple of days ago. Then I thought I better write it down so I can burn it into my head and actually use it.

Collapse
 
leob profile image
leob

Totally new to me, ch, never heard of it ...

So, 'ch' is something like the "amount" of text, horizontally, for a line or paragraph. If you use many W's or M's then way fewer characters will fit in 50ch than when you use i's or j's ... which makes the "amount of text to process" in a line 'constant' for the user (for lack of a better description).

At least for variable width fonts (for fixed width fonts an i and a W have the same width).

Thread Thread
 
zeanqin profile image
Zean Qin • Edited

At least for variable width fonts (for fixed width fonts an i and a W have the same width).

Oh, this is a very good point. I didn't think of this - so using ch with monospaced typefaces would result in (probably) same amount of characters on every (full) line.