[theme] embed exo 2 font

Tue, 28 Aug 2018 15:00:17 +0200

author
David Douard <david.douard@logilab.fr>
date
Tue, 28 Aug 2018 15:00:17 +0200
changeset 102
3be37c16285c
parent 101
4a94e81bff74
child 103
da84473ad628

[theme] embed exo 2 font

instead of using google

theme/static/css/exo2.css file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-Black.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-BlackItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-Bold.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-BoldItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-ExtraBold.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-ExtraBoldItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-ExtraLight.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-ExtraLightItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-Italic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-Light.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-LightItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-Medium.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-MediumItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-Regular.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-SemiBold.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-SemiBoldItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-Thin.otf file | annotate | diff | comparison | revisions
theme/static/css/exo2/Exo2-ThinItalic.otf file | annotate | diff | comparison | revisions
theme/static/css/lamboz.css file | annotate | diff | comparison | revisions
theme/templates/base.html file | annotate | diff | comparison | revisions
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/theme/static/css/exo2.css	Tue Aug 28 15:00:17 2018 +0200
@@ -0,0 +1,127 @@
+/* normal */
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 100;
+  src: url(exo2/Exo2-Thin.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 200;
+  src: url(exo2/Exo2-ExtraLight.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 300;
+  src: url(exo2/Exo2-Light.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 400;
+  src: url(exo2/Exo2-Regular.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 500;
+  src: url(exo2/Exo2-Medium.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 600;
+  src: url(exo2/Exo2-SemiBold.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 700;
+  src: url(exo2/Exo2-Bold.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 800;
+  src: url(exo2/Exo2-ExtraBold.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: normal;
+  font-weight: 900;
+  src: url(exo2/Exo2-Black.otf) format('opentype');
+}
+
+/* italic */
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 100;
+  src: url(exo2/Exo2-ThinItalic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 200;
+  src: url(exo2/Exo2-ExtraLightItalic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 300;
+  src: url(exo2/Exo2-LightItalic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 400;
+  src: url(exo2/Exo2-Italic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 500;
+  src: url(exo2/Exo2-MediumItalic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 600;
+  src: url(exo2/Exo2-SemiBoldItalic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 700;
+  src: url(exo2/Exo2-BoldItalic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 800;
+  src: url(exo2/Exo2-ExtraBoldItalic.otf) format('opentype');
+}
+
+@font-face {
+  font-family: 'Exo 2';
+  font-style: italic;
+  font-weight: 900;
+  src: url(exo2/Exo2-BlackItalic.otf) format('opentype');
+}
Binary file theme/static/css/exo2/Exo2-Black.otf has changed
Binary file theme/static/css/exo2/Exo2-BlackItalic.otf has changed
Binary file theme/static/css/exo2/Exo2-Bold.otf has changed
Binary file theme/static/css/exo2/Exo2-BoldItalic.otf has changed
Binary file theme/static/css/exo2/Exo2-ExtraBold.otf has changed
Binary file theme/static/css/exo2/Exo2-ExtraBoldItalic.otf has changed
Binary file theme/static/css/exo2/Exo2-ExtraLight.otf has changed
Binary file theme/static/css/exo2/Exo2-ExtraLightItalic.otf has changed
Binary file theme/static/css/exo2/Exo2-Italic.otf has changed
Binary file theme/static/css/exo2/Exo2-Light.otf has changed
Binary file theme/static/css/exo2/Exo2-LightItalic.otf has changed
Binary file theme/static/css/exo2/Exo2-Medium.otf has changed
Binary file theme/static/css/exo2/Exo2-MediumItalic.otf has changed
Binary file theme/static/css/exo2/Exo2-Regular.otf has changed
Binary file theme/static/css/exo2/Exo2-SemiBold.otf has changed
Binary file theme/static/css/exo2/Exo2-SemiBoldItalic.otf has changed
Binary file theme/static/css/exo2/Exo2-Thin.otf has changed
Binary file theme/static/css/exo2/Exo2-ThinItalic.otf has changed
--- a/theme/static/css/lamboz.css	Fri Apr 20 01:11:16 2018 +0200
+++ b/theme/static/css/lamboz.css	Tue Aug 28 15:00:17 2018 +0200
@@ -1,5 +1,5 @@
 BODY,P,DIV, UL LI, OL LI, TD {
-  font-family:"Exo 2",sans-serif;
+  font-family:"Exo 2";
   font-size: 12pt;
   margin: 0;
 }
--- a/theme/templates/base.html	Fri Apr 20 01:11:16 2018 +0200
+++ b/theme/templates/base.html	Tue Aug 28 15:00:17 2018 +0200
@@ -5,7 +5,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <link rel="stylesheet" href="{{ SITEURL}}/theme/css/foundation.min.css" media="all">
   <script type="text/javascript" src="{{ SITEURL }}/theme/js/modernizr.js"></script>
-  <link href='https://fonts.googleapis.com/css?family=Exo+2:400,300,700,300italic,400italic,700italic,900,900italic' rel='stylesheet' type='text/css'>
+  <link href="{{ SITEURL }}/theme/css/exo2.css" rel='stylesheet' type='text/css'>
   <link rel="stylesheet" href="{{ SITEURL }}/theme/css/lamboz.css" media="all">
   {% block head %}
   <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>

mercurial