template: use Go font
These fonts are available under the usual license at
golang.org/x/image/font/gofont
Change-Id: Ifeb5c3478bc6752b75f1d1128d05141d7bc4a45e
Reviewed-on: https://go-review.googlesource.com/33259
Reviewed-by: Rob Pike <r@golang.org>
diff --git a/static/Go-Bold.woff b/static/Go-Bold.woff
new file mode 100644
index 0000000..9e20c5d
--- /dev/null
+++ b/static/Go-Bold.woff
Binary files differ
diff --git a/static/Go-BoldItalic.woff b/static/Go-BoldItalic.woff
new file mode 100644
index 0000000..02af73a
--- /dev/null
+++ b/static/Go-BoldItalic.woff
Binary files differ
diff --git a/static/Go-Italic.woff b/static/Go-Italic.woff
new file mode 100644
index 0000000..ac68078
--- /dev/null
+++ b/static/Go-Italic.woff
Binary files differ
diff --git a/static/GoMedium-Italic.woff b/static/GoMedium-Italic.woff
new file mode 100644
index 0000000..49c509c
--- /dev/null
+++ b/static/GoMedium-Italic.woff
Binary files differ
diff --git a/static/GoMedium.woff b/static/GoMedium.woff
new file mode 100644
index 0000000..2541515
--- /dev/null
+++ b/static/GoMedium.woff
Binary files differ
diff --git a/static/GoMono-Bold.woff b/static/GoMono-Bold.woff
new file mode 100644
index 0000000..f636e56
--- /dev/null
+++ b/static/GoMono-Bold.woff
Binary files differ
diff --git a/static/GoMono-BoldItalic.woff b/static/GoMono-BoldItalic.woff
new file mode 100644
index 0000000..3d977e0
--- /dev/null
+++ b/static/GoMono-BoldItalic.woff
Binary files differ
diff --git a/static/GoMono-Italic.woff b/static/GoMono-Italic.woff
new file mode 100644
index 0000000..9544027
--- /dev/null
+++ b/static/GoMono-Italic.woff
Binary files differ
diff --git a/static/GoMono.woff b/static/GoMono.woff
new file mode 100644
index 0000000..f7e5ffe
--- /dev/null
+++ b/static/GoMono.woff
Binary files differ
diff --git a/static/GoRegular.woff b/static/GoRegular.woff
new file mode 100644
index 0000000..5292f4a
--- /dev/null
+++ b/static/GoRegular.woff
Binary files differ
diff --git a/static/fonts.css b/static/fonts.css
new file mode 100644
index 0000000..5edf1fa
--- /dev/null
+++ b/static/fonts.css
@@ -0,0 +1,69 @@
+@font-face {
+ font-family: 'Go';
+ src: url('GoMedium-Italic.woff') format('woff');
+ font-weight: 500;
+ font-style: italic;
+}
+
+@font-face {
+ font-family: 'Go';
+ src: url('Go-Italic.woff') format('woff');
+ font-weight: normal;
+ font-style: italic;
+}
+
+@font-face {
+ font-family: 'Go';
+ src: url('Go-Bold.woff') format('woff');
+ font-weight: bold;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'Go';
+ src: url('GoMedium.woff') format('woff');
+ font-weight: 500;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'Go';
+ src: url('Go-BoldItalic.woff') format('woff');
+ font-weight: bold;
+ font-style: italic;
+}
+
+@font-face {
+ font-family: 'Go';
+ src: url('GoRegular.woff') format('woff');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'Go Mono';
+ src: url('GoMono-Bold.woff') format('woff');
+ font-weight: bold;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'Go Mono';
+ src: url('GoMono.woff') format('woff');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'Go Mono';
+ src: url('GoMono-Italic.woff') format('woff');
+ font-weight: normal;
+ font-style: italic;
+}
+
+@font-face {
+ font-family: 'Go Mono';
+ src: url('GoMono-BoldItalic.woff') format('woff');
+ font-weight: bold;
+ font-style: italic;
+}
diff --git a/template/root.tmpl b/template/root.tmpl
index 2fa81d0..2c4d114 100644
--- a/template/root.tmpl
+++ b/template/root.tmpl
@@ -9,6 +9,7 @@
<meta name="theme-color" content="#375EAB">
<title>{{template "title" .}}</title>
<link type="text/css" rel="stylesheet" href="/lib/godoc/style.css">
+ <link type="text/css" rel="stylesheet" href="/static/fonts.css">
<link rel="alternate" type="application/atom+xml" title="blog.golang.org - Atom Feed" href="//blog.golang.org/feed.atom" />
<script type="text/javascript">window.initFuncs = [];</script>
<style>
@@ -48,6 +49,12 @@
#content img {
max-width: 100%;
}
+ body {
+ font-family: Go, Arial, sans-serif;
+ }
+ pre, code {
+ font-family: Go Mono, Menlo, monospace;
+ }
</style>
</head>
<body>