css: use local fonts
authorLucian Mogosanu <lucian.mogosanu@gmail.com>
Sat, 10 Aug 2013 10:28:19 +0000 (13:28 +0300)
committerLucian Mogosanu <lucian.mogosanu@gmail.com>
Sat, 10 Aug 2013 10:28:19 +0000 (13:28 +0300)
css/fonts.css [new file with mode: 0644]
css/fonts/Cardo.ttf [new file with mode: 0644]
css/fonts/LICENSE.markdown [new file with mode: 0644]
css/fonts/UbuntuMono.ttf [new file with mode: 0644]
css/fonts/Underdog.ttf [new file with mode: 0644]
templates/default.html

diff --git a/css/fonts.css b/css/fonts.css
new file mode 100644 (file)
index 0000000..0a82002
--- /dev/null
@@ -0,0 +1,20 @@
+@font-face {
+  font-family: 'Cardo';
+  font-style: normal;
+  font-weight: 400;
+  src: local('Cardo'), local('Cardo-Regular'), url(http://thetarpit.org/css/fonts/Cardo.ttf) format('truetype');
+}
+
+@font-face {
+  font-family: 'Underdog';
+  font-style: normal;
+  font-weight: 400;
+  src: local('Underdog'), local('Underdog-Regular'), url(http://thetarpit.org/css/fonts/Underdog.ttf) format('truetype');
+}
+
+@font-face {
+  font-family: 'Ubuntu Mono';
+  font-style: normal;
+  font-weight: 400;
+  src: local('Ubuntu Mono'), local('UbuntuMono-Regular'), url(http://thetarpit.org/css/fonts/UbuntuMono.ttf) format('truetype');
+}
diff --git a/css/fonts/Cardo.ttf b/css/fonts/Cardo.ttf
new file mode 100644 (file)
index 0000000..87ec4ad
Binary files /dev/null and b/css/fonts/Cardo.ttf differ
diff --git a/css/fonts/LICENSE.markdown b/css/fonts/LICENSE.markdown
new file mode 100644 (file)
index 0000000..475c7eb
--- /dev/null
@@ -0,0 +1,12 @@
+Licenses for fonts
+==================
+
+* Cardo font was taken from [Google Fonts][1], under [SIL Open Font License 1.1][2]
+* Underdog font was taken from [Google Fonts][3], under [SIL Open Font License 1.1][2]
+* Ubuntu Mono font was taken from [Google Fonts][4], under [Ubuntu Font Licence 1.0][5]
+
+[1]: http://www.google.com/fonts/specimen/Cardo
+[2]: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
+[3]: http://www.google.com/fonts/specimen/Underdog
+[4]: http://www.google.com/fonts/specimen/Ubuntu+Mono
+[5]: http://font.ubuntu.com/ufl/
diff --git a/css/fonts/UbuntuMono.ttf b/css/fonts/UbuntuMono.ttf
new file mode 100644 (file)
index 0000000..246a19e
Binary files /dev/null and b/css/fonts/UbuntuMono.ttf differ
diff --git a/css/fonts/Underdog.ttf b/css/fonts/Underdog.ttf
new file mode 100644 (file)
index 0000000..fc46ec6
Binary files /dev/null and b/css/fonts/Underdog.ttf differ
index fca1f73..24556d6 100644 (file)
@@ -6,8 +6,8 @@
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>The Tar Pit - $title$</title>
        <link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" />
-       <link href='http://fonts.googleapis.com/css?family=Underdog|Cardo&subset=latin,latin-ext' rel='stylesheet' type='text/css' />
-       <link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono' rel='stylesheet' type='text/css' />
+       <link href='/css/fonts.css' rel='stylesheet' type='text/css' />
+       <!-- <link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono' rel='stylesheet' type='text/css' /> -->
        <link rel="stylesheet" type="text/css" href="/css/default.css" />
        <link rel="stylesheet" type="text/css" href="/css/syntax.css" />
 </head>