Chapter 5. Fonts
Specifying typesetting properties is one of the most common uses of style sheets. Such properties include a font’s size, its width, its weight (is it light or bold?), and its posture (does it slant or stand upright?).
Getting the fonts you want with HTML is difficult because HTML was designed without any concept of fonts. In HTML, the appearance of the page is the result of the browser’s inserting styles it thinks are appropriate. It does this using the HTML structural information in your document. The lack of control over fonts in HTML has led to documents containing pictures of text instead of text. By making pictures of text, designers get total control over fonts. They can pick and choose between any font they have on their ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access