]> git.ipfire.org Git - ipfire.org.git/commitdiff
fonts: Add Source Code Pro
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Mar 2025 13:44:29 +0000 (13:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Mar 2025 14:17:18 +0000 (14:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.gitmodules
Makefile.am
src/sass/_fonts.sass
src/static/fonts/source-code-pro [new submodule]

index eb73fcb7d9d754b107a3abb9d2ed631d626cb33a..9829b7a91b508d0910538290bbca679127c09c5a 100644 (file)
@@ -13,3 +13,6 @@
 [submodule "src/font-awesome"]
        path = src/font-awesome
        url = https://git.ipfire.org/pub/git/thirdparty/Font-Awesome.git
+[submodule "src/static/fonts/source-code-pro"]
+       path = src/static/fonts/source-code-pro
+       url = https://github.com/adobe-fonts/source-code-pro.git
index f84a375e62ce24c9ad9cb749e3d68a25c6d8dad1..5803637912dbad78025b835b8707b64092460df7 100644 (file)
@@ -993,7 +993,97 @@ static_fonts_DATA = \
        src/static/fonts/prompt/Prompt-SemiBold.woff2 \
        src/static/fonts/prompt/Prompt-SemiBoldItalic.woff2 \
        src/static/fonts/prompt/Prompt-Thin.woff2 \
-       src/static/fonts/prompt/Prompt-ThinItalic.woff2
+       src/static/fonts/prompt/Prompt-ThinItalic.woff2 \
+       \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-BlackIt.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-Black.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-BoldIt.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-Bold.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-ExtraLightIt.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-ExtraLight.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-It.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-LightIt.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-Light.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-MediumIt.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-Medium.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-Regular.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-SemiboldIt.otf \
+       src/static/fonts/source-code-pro/OTF/SourceCodePro-Semibold.otf \
+       \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-BlackIt.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-Black.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-BoldIt.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-Bold.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-ExtraLightIt.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-ExtraLight.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-It.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-LightIt.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-Light.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-MediumIt.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-Medium.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-Regular.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-SemiboldIt.ttf \
+       src/static/fonts/source-code-pro/TTF/SourceCodePro-Semibold.ttf \
+       \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-BlackIt.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-Black.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-BoldIt.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-ExtraLightIt.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-ExtraLight.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-It.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-LightIt.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-Light.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-MediumIt.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-Medium.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-SemiboldIt.otf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/OTF/SourceCodePro-Semibold.otf.woff2 \
+       \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-BlackIt.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-Black.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-BoldIt.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-ExtraLightIt.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-ExtraLight.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-It.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-LightIt.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-Light.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-MediumIt.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-Medium.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-SemiboldIt.ttf.woff2 \
+       src/static/fonts/source-code-pro/WOFF2/TTF/SourceCodePro-Semibold.ttf.woff2 \
+       \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-BlackIt.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-Black.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-BoldIt.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-Bold.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-ExtraLightIt.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-ExtraLight.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-It.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-LightIt.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-Light.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-MediumIt.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-Medium.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-Regular.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-SemiboldIt.otf.woff \
+       src/static/fonts/source-code-pro/WOFF/OTF/SourceCodePro-Semibold.otf.woff \
+       \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-BlackIt.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-Black.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-BoldIt.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-Bold.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-ExtraLightIt.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-ExtraLight.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-It.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-LightIt.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-Light.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-MediumIt.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-Medium.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-Regular.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-SemiboldIt.ttf.woff \
+       src/static/fonts/source-code-pro/WOFF/TTF/SourceCodePro-Semibold.ttf.woff
 
 static_fontsdir = $(staticdir)/fonts
 
index a7dc361d3f120ce5eed58506d95355363bc59709..47049c431f3b36e3fbce654226885e22134fed3b 100644 (file)
@@ -47,3 +47,102 @@ $fonts-baseurl: "/static/fonts" !default
        font-weight: 700
        src: local("Prompt Bold"), local("Prompt-Bold"), url(#{$fonts-baseurl}/Prompt-Bold.woff2) format("woff2"), url(#{$fonts-baseurl}/Prompt-Bold.ttf) format("truetype")
        unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
+
+/* Source Code Pro */
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 200;
+        font-style: normal;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-ExtraLight.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-ExtraLight.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-ExtraLight.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-ExtraLight.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 200;
+        font-style: italic;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-ExtraLightIt.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-ExtraLightIt.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-ExtraLightIt.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-ExtraLightIf.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 300;
+        font-style: normal;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-Light.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-Light.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-Light.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-Light.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 300;
+        font-style: italic;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-LightIt.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-LightIt.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-LightIt.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-LightIf.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 400;
+        font-style: normal;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-Regular.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-Regular.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-Regular.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-Regular.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 400;
+        font-style: italic;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-It.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-It.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-It.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-If.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 500;
+        font-style: normal;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-Medium.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-Medium.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-Medium.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-Medium.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 500;
+        font-style: italic;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-MediumIt.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-MediumIt.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-MediumIt.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-MediumIf.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 600;
+        font-style: normal;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-SemiBold.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-SemiBold.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-SemiBold.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-SemiBold.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 600;
+        font-style: italic;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-SemiBoldIt.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-SemiBoldIt.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-SemiBoldIt.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-SemiBoldIf.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 700;
+        font-style: normal;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-Bold.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-Bold.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-Bold.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-Bold.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 700;
+        font-style: italic;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-BoldIt.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-BoldIt.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-BoldIt.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-BoldIf.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 900;
+        font-style: normal;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-Black.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-Black.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-Black.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-Black.ttf") format("truetype");
+
+@font-face
+        font-family: "Source Code Pro";
+        font-weight: 900;
+        font-style: italic;
+        font-stretch: normal;
+        src: url("#{$fonts-baseurl}/SourceCodePro-BlackIt.ttf.woff2") format("woff2"), url("#{$fonts-baseurl}/SourceCodePro-BlackIt.otf.woff") format("woff"), url("#{$fonts-baseurl}/SourceCodePro-BlackIt.otf") format("opentype"), url("#{$fonts-baseurl}/SourceCodePro-BlackIf.ttf") format("truetype");
diff --git a/src/static/fonts/source-code-pro b/src/static/fonts/source-code-pro
new file mode 160000 (submodule)
index 0000000..208d9ac
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 208d9ac7a6827ceb51ea2dc635794839d9659e52