-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
111 lines (105 loc) · 3.57 KB
/
index.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
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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Computer-Modern</title>
<link rel="stylesheet" type="text/css"
href="http://spratt.github.io/EasyCSS/minimalist.css" />
<link rel="stylesheet" type="text/css"
href="http://spratt.github.io/Computer-Modern/cmserif.css" />
<link rel="stylesheet" type="text/css"
href="http://spratt.github.io/Computer-Modern/cmsans.css" />
<style>
body {
line-height: 1.3em;
max-width: 30em;
margin: 0 auto;
}
</style>
<style>
body {
font-family: "Computer Modern Serif", serif;
}
.sans {
font-family: "Computer Modern Sans", sans-serif;
}
h2 {
font-size: 1em;
font-weight: normal;
font-style: italic;
}
</style>
</head>
<body>
<h1>Computer-Modern</h1>
<h2>
Making it easy to use the Computer Modern font in web pages.
</h2>
<p>
The <a href="https://en.wikipedia.org/wiki/Computer_Modern">Computer
Modern</a> family of fonts was developed
by <a href="http://www-cs-faculty.stanford.edu/~knuth/">Donald
Knuth</a> and described in detail in the book <i>Computer Modern
Typefaces</i>.
</p>
<p>
<a href="http://cm-unicode.sourceforge.net/">The Computer Modern
Unicode font project is hosted on sourceforge</a> and
is <a href="http://cm-unicode.sourceforge.net/license.html">licensed
under a modified X11 license</a>, under which this project is
also <a href="https://github.com/spratt/Computer-Modern/blob/gh-pages/LICENSE">licensed</a>.
</p>
<h3>Computer Modern Serif</h2>
<p>
<b>Computer Modern Serif</b> is a beautiful <i>serifed</i> font.
It is the default font for TeX and LaTeX. You can use this font
on your own site by including the following link in your HTML:
</p>
<pre><code>
<link rel="stylesheet" type="text/css"
href="http://spratt.github.io/Computer-Modern/cmserif.css" />
</code></pre>
<p>
Then simply choose "Computer Modern Serif" as a font-family in
CSS, e.g.:
</p>
<pre><code>
.serif {
font-family: "Computer Modern Serif", serif;
}
</code></pre>
<p>
In which case, we create a class "serif" which uses this font,
with the default serifed font as a fallback.
</p>
<h3 class="sans">Computer Modern Sans</h2>
<p class="sans">
<b>Computer Modern Sans</b> is a lovely <i>sans-serif</i> font.
</p>
<pre><code>
<link rel="stylesheet" type="text/css"
href="http://spratt.github.io/Computer-Modern/cmsans.css" />
</code></pre>
<p class="sans">
Then simply choose "Computer Modern Sans" as a font-family in
CSS, e.g.:
</p>
<pre><code>
.sans {
font-family: "Computer Modern Sans", sans-serif;
}
</code></pre>
<p class="sans">
In which case, we create a class "sans" which uses this font,
with the default sans-serif font as a fallback.
</p>
<a href="https://github.com/spratt/Computer-Modern">
<img style="position: absolute; top: 0; right: 0; border: 0;" alt="Fork me on GitHub"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png">
</a>
</body>
</html>