-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathunceremonious-faux-font-face.html
28 lines (27 loc) · 1.04 KB
/
unceremonious-faux-font-face.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Uncermonious faux-@font-face</title>
<style>
@font-face {
font-family: Lato;
src: url('font-lato/lato-regular-webfont.woff2') format('woff2'),
url('font-lato/lato-regular-webfont.woff') format('woff');
}
body {
font-family: Lato, sans-serif;
}
</style>
</head>
<body>
<h1>Unceremonious faux @font-face (font-synthesis)</h1>
<p>This is a paragraph. <strong>This is heavier text (font-synthesis).</strong> <em>This is emphasized text (font-synthesis).</em> <strong><em>This is heavier and emphasized text (font-synthesis).</em></strong></p>
<hr style="margin-top: 2em">
<ul>
<li>This demo is a companion to <a href="https://www.zachleat.com/web/comprehensive-webfonts/">A Comprehensive Guide to Font Loading Strategies</a></li>
<li>See all demos on <a href="https://github.com/zachleat/web-font-loading-recipes">GitHub <code>zachleat/web-font-loading-recipes</code></a></li>
</ul>
</body>
</html>