Skip to content

Commit

Permalink
add Source Code Pro font
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Apr 27, 2024
1 parent 437e719 commit abd8d2f
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 8 deletions.
26 changes: 22 additions & 4 deletions public/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
font-style: normal;
font-weight: 400;
src: url("/fonts/source-sans-pro-v21-latin-regular.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-regular.woff2")
Expand All @@ -24,7 +25,8 @@
font-style: italic;
font-weight: 400;
src: url("/fonts/source-sans-pro-v21-latin-italic.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-italic.woff2")
Expand All @@ -44,7 +46,8 @@
font-style: normal;
font-weight: 600;
src: url("/fonts/source-sans-pro-v21-latin-600.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-600.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-600.woff2")
Expand All @@ -64,7 +67,8 @@
font-style: normal;
font-weight: 700;
src: url("/fonts/source-sans-pro-v21-latin-700.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-700.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-700.woff2")
Expand All @@ -77,3 +81,17 @@
url("/fonts/source-sans-pro-v21-latin-700.svg#SourceSansPro")
format("svg"); /* Legacy iOS */
}

/* Source Code Pro */
@font-face {
font-family: "Source Code Pro";
font-style: normal;
src: url("/fonts/SourceCodePro-VariableFont_wght.ttf") format("truetype");
}

@font-face {
font-family: "Source Code Pro";
font-style: italic;
src: url("/fonts/SourceCodePro-Italic-VariableFont_wght.ttf")
format("truetype");
}
Binary file not shown.
Binary file added public/fonts/SourceCodePro-VariableFont_wght.ttf
Binary file not shown.
26 changes: 22 additions & 4 deletions static/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
font-style: normal;
font-weight: 400;
src: url("/fonts/source-sans-pro-v21-latin-regular.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-regular.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-regular.woff2")
Expand All @@ -24,7 +25,8 @@
font-style: italic;
font-weight: 400;
src: url("/fonts/source-sans-pro-v21-latin-italic.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-italic.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-italic.woff2")
Expand All @@ -44,7 +46,8 @@
font-style: normal;
font-weight: 600;
src: url("/fonts/source-sans-pro-v21-latin-600.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-600.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-600.woff2")
Expand All @@ -64,7 +67,8 @@
font-style: normal;
font-weight: 700;
src: url("/fonts/source-sans-pro-v21-latin-700.eot"); /* IE9 Compat Modes */
src: local(""),
src:
local(""),
url("/fonts/source-sans-pro-v21-latin-700.eot?#iefix")
format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/source-sans-pro-v21-latin-700.woff2")
Expand All @@ -77,3 +81,17 @@
url("/fonts/source-sans-pro-v21-latin-700.svg#SourceSansPro")
format("svg"); /* Legacy iOS */
}

/* Source Code Pro */
@font-face {
font-family: "Source Code Pro";
font-style: normal;
src: url("/fonts/SourceCodePro-VariableFont_wght.ttf") format("truetype");
}

@font-face {
font-family: "Source Code Pro";
font-style: italic;
src: url("/fonts/SourceCodePro-Italic-VariableFont_wght.ttf")
format("truetype");
}
Binary file not shown.
Binary file added static/fonts/SourceCodePro-VariableFont_wght.ttf
Binary file not shown.

0 comments on commit abd8d2f

Please sign in to comment.