tachyons icon indicating copy to clipboard operation
tachyons copied to clipboard

Courier font isn't courier?

Open chasrmartin opened this issue 5 years ago • 3 comments

Simple enough — the Courier font family provides Consolas, not Courier. This is the "courier" example as in the online documentation:

Screenshot 2020-01-21 18 25 45

This is real Courier, as set using dev tools in Chrome:

Screenshot 2020-01-21 18 26 30

chasrmartin avatar Jan 21 '20 23:01 chasrmartin

In the documentation (http://tachyons.io/docs/typography/font-family/) both courier and Consolas, monaco have the same definition:

class="code lh-copy measure"

I don't know if something is missing for one of these or if one should be removed, because now they look the same:

image

shiftgeist avatar Jan 29 '20 09:01 shiftgeist

Yeah, that's my point. Consolas ≠ Courier. The Courier font setting doesn't provide Courier. It gives the same result as the Consolas setting, which does provide Consolas.

chasrmartin avatar Jan 29 '20 18:01 chasrmartin

It's just an error in the documentation. For Courier the class is courier, for Consolas it's code. So in the documentation the class should be class="courier lh-copy measure"

auxsoft avatar Feb 19 '20 14:02 auxsoft