You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
pollen-tfl/monospaced-fonts.html.pm

19 lines
1.3 KiB
Perl

#lang pollen
(define-meta title "monospaced fonts")
hanging-topic[(topic-from-metas metas)]{Don't use these either}
The xref{system fonts} Courier, Monaco, and Consolas are examples of em{monospaced fonts}, so named because every character is the same width. When the characters vary in width, the font is called em{proportional}.
indented[#:hyphenate #f]{◊font-scale[1.6]{
mono{abcdefghijklmnopqrstuvwxyz!}
abcdefghijklmnopqrstuvwxyz!
; next two lines contain nonbreaking spaces
mono{Jill, did you buy the milk?}
Jill, did you buy the milk?}}
The samples above are set at the same point size. But the monospaced font (first and third rows) takes up more horizontal space than the proportional font (second and fourth rows). The differences are most noticeable in characters that are narrow in the proportional font (like f i j l r t) and the punctuation characters.
Monospaced fonts were invented to meet the mechanical requirements of typewriters. They were not invented to win beauty contests. Compared to proportional fonts, monospaced fonts are harder to read. And because they take up more horizontal space, youll always get fewer words per page with a monospaced font.
There are no good reasons to use monospaced fonts. So dont. Use proportional fonts.