[static-web] css: Define "Source Code Pro" to fonts.css



commit 7032308e870f8c7a68a26a46ba4da8802d2c9ea6
Author: Tom Tryfonidis <tomtryf gnome org>
Date:   Wed Jun 21 16:22:51 2017 +0300

    css: Define "Source Code Pro" to fonts.css

 css/fonts.css |  141 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 134 insertions(+), 7 deletions(-)
---
diff --git a/css/fonts.css b/css/fonts.css
index edcf3ae..56d5f78 100644
--- a/css/fonts.css
+++ b/css/fonts.css
@@ -143,14 +143,141 @@
 }
 
 @font-face {
-  font-family: 'Cantarell';
-  src: local('Cantarell'), local('Cantarell Regular'),
-  url(../fonts/Cantarell-Regular.otf);
+    font-family: 'Source Code Pro';
+    font-weight: 200;
+    font-style: normal;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-ExtraLight.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-ExtraLight.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-ExtraLight.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 300;
+    font-style: normal;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-Light.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-Light.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-Light.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 400;
+    font-style: normal;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-Regular.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-Regular.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-Regular.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 500;
+    font-style: normal;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-Medium.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-Medium.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-Medium.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 600;
+    font-style: normal;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-Semibold.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-Semibold.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-Semibold.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 700;
+    font-style: normal;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-Bold.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-Bold.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-Bold.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 900;
+    font-style: normal;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-Black.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-Black.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-Black.ttf') format('truetype');
 }
 
 @font-face {
-  font-family: 'Cantarell';
-  font-weight: bold;
-  src: local('Cantarell'), local('Cantarell Bold'), local('Cantarell-Bold'),
-  url(../fonts/Cantarell-Bold.otf);
+    font-family: 'Source Code Pro';
+    font-weight: 200;
+    font-style: italic;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-ExtraLightIt.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-ExtraLightIt.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-ExtraLightIt.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 300;
+    font-style: italic;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-LightIt.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-LightIt.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-LightIt.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 400;
+    font-style: italic;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-It.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-It.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-It.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 500;
+    font-style: italic;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-MediumIt.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-MediumIt.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-MediumIt.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 600;
+    font-style: italic;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-SemiboldIt.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-SemiboldIt.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-SemiboldIt.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 700;
+    font-style: italic;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-BoldIt.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-BoldIt.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-BoldIt.ttf') format('truetype');
+}
+
+@font-face {
+    font-family: 'Source Code Pro';
+    font-weight: 900;
+    font-style: italic;
+    font-stretch: normal;
+    src: url('../fonts/SourceCodePro-BlackIt.otf.woff2') format('woff2'),
+         url('../fonts/SourceCodePro-BlackIt.otf.woff') format('woff'),
+         url('../fonts/SourceCodePro-BlackIt.ttf') format('truetype');
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]