Browse Source

Use Charter font in docs

Stan Janssen 4 years ago
parent
commit
fd8db27c70
1 changed files with 34 additions and 1 deletions
  1. 34 1
      docs/_static/css/custom.css

+ 34 - 1
docs/_static/css/custom.css

@@ -1,5 +1,38 @@
-body{
+@font-face {
+    font-family: 'charter-webfont';
+    src: url('../fonts/charter_regular.woff') format('woff');
+    font-weight: normal;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'charter-webfont';
+    src: url('../fonts/charter_italic.woff') format('woff');
+    font-weight: normal;
+    font-style: italic;
+}
+
+@font-face {
+    font-family: 'charter-webfont';
+    src: url('../fonts/charter_bold.woff') format('woff');
+    font-weight: bold;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'charter-webfont';
+    src: url('../fonts/charter_bold_italic.woff') format('woff');
+    font-weight: bold;
+    font-style: italic;
+}
+
+body {
     font-size: 10.5pt;
+    font-family: 'Charter', 'charter-webfont', 'Georgia', sans-serif;
+}
+
+h1, h2, h3 {
+    font-family: 'Charter', 'charter-webfont', 'Georgia', sans-serif;
 }
 
 .sphinxsidebarwrapper{