Browse Source

Merge pull request #5123 from ellisonbg/monospace-fontface

New monospace default fonts
Brian E. Granger 6 years ago
parent
commit
85f94c2de1

+ 0 - 18
packages/theme-dark-extension/style/fonts.css

@@ -1,18 +0,0 @@
-/*-----------------------------------------------------------------------------
-| Copyright (c) Jupyter Development Team.
-| Distributed under the terms of the Modified BSD License.
-|----------------------------------------------------------------------------*/
-
-@font-face {
-  font-family: 'Source Code Pro';
-  src: url('fonts/SourceCodePro-Regular.ttf') format('truetype');
-  font-weight: 400;
-  font-style: normal;
-}
-
-@font-face {
-  font-family: 'Source Code Pro';
-  src: url('fonts/SourceCodePro-Bold.ttf') format('truetype');
-  font-weight: 700;
-  font-style: normal;
-}

BIN
packages/theme-dark-extension/style/fonts/SourceCodePro-Bold.ttf


BIN
packages/theme-dark-extension/style/fonts/SourceCodePro-Regular.ttf


+ 0 - 1
packages/theme-dark-extension/style/index.css

@@ -3,7 +3,6 @@
 | Distributed under the terms of the Modified BSD License.
 |----------------------------------------------------------------------------*/
 
-@import './fonts.css';
 @import './variables.css';
 @import './urls.css';
 

+ 2 - 1
packages/theme-dark-extension/style/variables.css

@@ -182,7 +182,8 @@ all of MD as it is not optimized for dense, information rich UIs.
   --jp-code-font-size: 13px;
   --jp-code-line-height: 1.3077; /* 17px for 13px base */
   --jp-code-padding: 0.385em; /* 5px for 13px base */
-  --jp-code-font-family: 'Source Code Pro', monospace;
+  --jp-code-font-family-default: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
+  --jp-code-font-family: var(--jp-code-font-family-default);
 
   /* This gives a magnification of about 125% in presentation mode over normal. */
   --jp-code-presentation-font-size: 16px;

+ 0 - 18
packages/theme-light-extension/style/fonts.css

@@ -1,18 +0,0 @@
-/*-----------------------------------------------------------------------------
-| Copyright (c) Jupyter Development Team.
-| Distributed under the terms of the Modified BSD License.
-|----------------------------------------------------------------------------*/
-
-@font-face {
-  font-family: 'Source Code Pro';
-  src: url('fonts/SourceCodePro-Regular.ttf') format('truetype');
-  font-weight: 400;
-  font-style: normal;
-}
-
-@font-face {
-  font-family: 'Source Code Pro';
-  src: url('fonts/SourceCodePro-Bold.ttf') format('truetype');
-  font-weight: 700;
-  font-style: normal;
-}

BIN
packages/theme-light-extension/style/fonts/SourceCodePro-Bold.ttf


BIN
packages/theme-light-extension/style/fonts/SourceCodePro-Regular.ttf


+ 0 - 1
packages/theme-light-extension/style/index.css

@@ -3,7 +3,6 @@
 | Distributed under the terms of the Modified BSD License.
 |----------------------------------------------------------------------------*/
 
-@import './fonts.css';
 @import './variables.css';
 @import './urls.css';
 

+ 2 - 1
packages/theme-light-extension/style/variables.css

@@ -180,7 +180,8 @@ all of MD as it is not optimized for dense, information rich UIs.
   --jp-code-font-size: 13px;
   --jp-code-line-height: 1.3077; /* 17px for 13px base */
   --jp-code-padding: 0.385em; /* 5px for 13px base */
-  --jp-code-font-family: 'Source Code Pro', monospace;
+  --jp-code-font-family-default: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
+  --jp-code-font-family: var(--jp-code-font-family-default);
 
   /* This gives a magnification of about 125% in presentation mode over normal. */
   --jp-code-presentation-font-size: 16px;