-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (127 loc) · 6.99 KB
/
Copy pathindex.html
File metadata and controls
160 lines (127 loc) · 6.99 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
---
layout: single
property_name: font-family
---
<section id="font-family" class="property">
<header class="property-header">
<nav class="property-links">
<a class="property-collection" href="{{site.url}}/typography/">
In collection: <strong>typography</strong>
</a>
<a class="property-links-direct" href="{{site.url}}/property/font-family/" data-property-name="font-family" data-tooltip="Single page for this property">Permalink</a>
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-family">Share</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-family" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="property-name">
<a href="#font-family"><span>#</span>font-family</a>
</h2>
<div class="property-description">
</div>
</header>
<style type="text/css">.font-family { font-size: 1.5em;line-height: 1.2; }</style>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: "Source Sans Pro", "Arial", sans-serif;">font-family: "Source Sans Pro", "Arial", sans-serif;</code>
</p>
<div class="example-description">
<p>When using <strong>multiple</strong> values, the <code>font-family</code> list of <strong>font families</strong> defines the <strong>priority</strong> in which the browser should choose the font family.</p>
<p>The browser will look for each family on the user's <strong>computer</strong> and in any <strong>@font-face</strong> resource.</p>
<p>The list is prioritized from <strong>left</strong> to <strong>right</strong>: it will use the first value if it's available, or go to the next one, until the end of the list is reached. The <strong>default</strong> font family is defined by the browser preferences.</p>
<p>In this example, the browser will try to use <code>Source Sans Pro</code> if it's available. If it can't find it, it will try to use <code>Arial</code>. If it's not available either, it will use the browser's <code>sans-serif</code> font.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-family " id="font-family-source-sans-pro-arial-sans-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div>
</div>
</aside>
<style type="text/css">#font-family-source-sans-pro-arial-sans-serif{ font-family:"Source Sans Pro", "Arial", sans-serif;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: serif;">font-family: serif;</code>
</p>
<div class="example-description">
<p>The browser will use a <strong>serif</strong> font family: all characters have <strong>stroke endings</strong>.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-family " id="font-family-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div>
</div>
</aside>
<style type="text/css">#font-family-serif{ font-family:serif;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: sans-serif;">font-family: sans-serif;</code>
</p>
<div class="example-description">
<p>The browser will use a <strong>sans-serif</strong> font family: <strong>no</strong> character has stroke endings.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-family " id="font-family-sans-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div>
</div>
</aside>
<style type="text/css">#font-family-sans-serif{ font-family:sans-serif;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: monospace;">font-family: monospace;</code>
</p>
<div class="example-description">
<p>The browser will use a <strong>monospace</strong> font family: all characters have the <strong>same width</strong>.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-family " id="font-family-monospace">Hello world<br>The quick brown fox jumps over the lazy dog</div>
</div>
</aside>
<style type="text/css">#font-family-monospace{ font-family:monospace;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: cursive;">font-family: cursive;</code>
</p>
<div class="example-description">
<p>The browser will use a <strong>cursive</strong> font family.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-family " id="font-family-cursive">Hello world<br>The quick brown fox jumps over the lazy dog</div>
</div>
</aside>
<style type="text/css">#font-family-cursive{ font-family:cursive;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: fantasy;">font-family: fantasy;</code>
</p>
<div class="example-description">
<p>The browser will use a <strong>fantasy</strong> font family.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div font-family " id="font-family-fantasy">Hello world<br>The quick brown fox jumps over the lazy dog</div>
</div>
</aside>
<style type="text/css">#font-family-fantasy{ font-family:fantasy;}</style>
</section>
</section>