From: Adam Dullage Date: Tue, 1 Apr 2025 11:57:15 +0000 (+0100) Subject: #287 Bundle semi bold and italic font variants X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9f7c244bac711239113c8e4104ee4986d0313d5c;p=flatnotes.git #287 Bundle semi bold and italic font variants --- diff --git a/client/assets/fonts/Poppins/OFL.txt b/client/assets/fonts/Poppins/OFL.txt index 246c977..3e92931 100644 --- a/client/assets/fonts/Poppins/OFL.txt +++ b/client/assets/fonts/Poppins/OFL.txt @@ -2,7 +2,7 @@ Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL +https://openfontlicense.org ----------------------------------------------------------- diff --git a/client/assets/fonts/Poppins/Poppins-Italic.ttf b/client/assets/fonts/Poppins/Poppins-Italic.ttf new file mode 100644 index 0000000..12b7b3c Binary files /dev/null and b/client/assets/fonts/Poppins/Poppins-Italic.ttf differ diff --git a/client/assets/fonts/Poppins/Poppins-SemiBold.ttf b/client/assets/fonts/Poppins/Poppins-SemiBold.ttf new file mode 100644 index 0000000..74c726e Binary files /dev/null and b/client/assets/fonts/Poppins/Poppins-SemiBold.ttf differ diff --git a/client/assets/fonts/Poppins/Poppins-SemiBoldItalic.ttf b/client/assets/fonts/Poppins/Poppins-SemiBoldItalic.ttf new file mode 100644 index 0000000..3e6c942 Binary files /dev/null and b/client/assets/fonts/Poppins/Poppins-SemiBoldItalic.ttf differ diff --git a/client/style.css b/client/style.css index 7876857..b7fc06f 100644 --- a/client/style.css +++ b/client/style.css @@ -11,6 +11,30 @@ src: url("assets/fonts/Poppins/Poppins-Regular.ttf"); } + @font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url("assets/fonts/Poppins/Poppins-Italic.ttf"); + } + + @font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url("assets/fonts/Poppins/Poppins-SemiBold.ttf"); + } + + @font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 600; + font-display: swap; + src: url("assets/fonts/Poppins/Poppins-SemiBoldItalic.ttf"); + } + body { --theme-brand: 248 166 107; --theme-background: 255 255 255;