Przeglądaj źródła

Use Charter font in docs

Stan Janssen 4 lat temu
rodzic
commit
fd8db27c70
1 zmienionych plików z 34 dodań i 1 usunięć
  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{