diff --git a/fonts/other/sn-pro/200-italic.css b/fonts/other/sn-pro/200-italic.css new file mode 100644 index 00000000000..c1bb87adae5 --- /dev/null +++ b/fonts/other/sn-pro/200-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-200-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 200; + src: url(./files/sn-pro-latin-200-italic.woff2) format('woff2'), url(./files/sn-pro-latin-200-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/200.css b/fonts/other/sn-pro/200.css new file mode 100644 index 00000000000..8a343584160 --- /dev/null +++ b/fonts/other/sn-pro/200.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-200-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/sn-pro-latin-200-normal.woff2) format('woff2'), url(./files/sn-pro-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/300-italic.css b/fonts/other/sn-pro/300-italic.css new file mode 100644 index 00000000000..7738b840625 --- /dev/null +++ b/fonts/other/sn-pro/300-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-300-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 300; + src: url(./files/sn-pro-latin-300-italic.woff2) format('woff2'), url(./files/sn-pro-latin-300-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/300.css b/fonts/other/sn-pro/300.css new file mode 100644 index 00000000000..9174948a2f6 --- /dev/null +++ b/fonts/other/sn-pro/300.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-300-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/sn-pro-latin-300-normal.woff2) format('woff2'), url(./files/sn-pro-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/400-italic.css b/fonts/other/sn-pro/400-italic.css new file mode 100644 index 00000000000..0415bcb148f --- /dev/null +++ b/fonts/other/sn-pro/400-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-400-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 400; + src: url(./files/sn-pro-latin-400-italic.woff2) format('woff2'), url(./files/sn-pro-latin-400-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/400.css b/fonts/other/sn-pro/400.css new file mode 100644 index 00000000000..2a7a5628247 --- /dev/null +++ b/fonts/other/sn-pro/400.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-400-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/sn-pro-latin-400-normal.woff2) format('woff2'), url(./files/sn-pro-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/500-italic.css b/fonts/other/sn-pro/500-italic.css new file mode 100644 index 00000000000..0334eacf16b --- /dev/null +++ b/fonts/other/sn-pro/500-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-500-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 500; + src: url(./files/sn-pro-latin-500-italic.woff2) format('woff2'), url(./files/sn-pro-latin-500-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/500.css b/fonts/other/sn-pro/500.css new file mode 100644 index 00000000000..32f6c21cd5d --- /dev/null +++ b/fonts/other/sn-pro/500.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-500-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/sn-pro-latin-500-normal.woff2) format('woff2'), url(./files/sn-pro-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/600-italic.css b/fonts/other/sn-pro/600-italic.css new file mode 100644 index 00000000000..54dc6738a79 --- /dev/null +++ b/fonts/other/sn-pro/600-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-600-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 600; + src: url(./files/sn-pro-latin-600-italic.woff2) format('woff2'), url(./files/sn-pro-latin-600-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/600.css b/fonts/other/sn-pro/600.css new file mode 100644 index 00000000000..b95d6492151 --- /dev/null +++ b/fonts/other/sn-pro/600.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-600-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/sn-pro-latin-600-normal.woff2) format('woff2'), url(./files/sn-pro-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/700-italic.css b/fonts/other/sn-pro/700-italic.css new file mode 100644 index 00000000000..eba16cc6e19 --- /dev/null +++ b/fonts/other/sn-pro/700-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-700-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 700; + src: url(./files/sn-pro-latin-700-italic.woff2) format('woff2'), url(./files/sn-pro-latin-700-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/700.css b/fonts/other/sn-pro/700.css new file mode 100644 index 00000000000..24b5775c8b0 --- /dev/null +++ b/fonts/other/sn-pro/700.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-700-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/sn-pro-latin-700-normal.woff2) format('woff2'), url(./files/sn-pro-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/800-italic.css b/fonts/other/sn-pro/800-italic.css new file mode 100644 index 00000000000..9310f7689cc --- /dev/null +++ b/fonts/other/sn-pro/800-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-800-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 800; + src: url(./files/sn-pro-latin-800-italic.woff2) format('woff2'), url(./files/sn-pro-latin-800-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/800.css b/fonts/other/sn-pro/800.css new file mode 100644 index 00000000000..3850ac15a94 --- /dev/null +++ b/fonts/other/sn-pro/800.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-800-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/sn-pro-latin-800-normal.woff2) format('woff2'), url(./files/sn-pro-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/900-italic.css b/fonts/other/sn-pro/900-italic.css new file mode 100644 index 00000000000..5f6a67916c7 --- /dev/null +++ b/fonts/other/sn-pro/900-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-900-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 900; + src: url(./files/sn-pro-latin-900-italic.woff2) format('woff2'), url(./files/sn-pro-latin-900-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/900.css b/fonts/other/sn-pro/900.css new file mode 100644 index 00000000000..84381435952 --- /dev/null +++ b/fonts/other/sn-pro/900.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-900-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/sn-pro-latin-900-normal.woff2) format('woff2'), url(./files/sn-pro-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/CHANGELOG.md b/fonts/other/sn-pro/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/other/sn-pro/CHANGELOG.md @@ -0,0 +1,2 @@ +# Changelog +See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). \ No newline at end of file diff --git a/fonts/other/sn-pro/LICENSE b/fonts/other/sn-pro/LICENSE new file mode 100644 index 00000000000..dbfd0bc3e57 --- /dev/null +++ b/fonts/other/sn-pro/LICENSE @@ -0,0 +1,93 @@ +Copyright 2024 SN Pro Authors (https://github.com/supernotes/sn-pro), with Reserved Font Name "SN Pro" +Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/nunito) + +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 + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/fonts/other/sn-pro/README.md b/fonts/other/sn-pro/README.md new file mode 100644 index 00000000000..c9dbaa7ea58 --- /dev/null +++ b/fonts/other/sn-pro/README.md @@ -0,0 +1,47 @@ +# Fontsource SN Pro + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/sn-pro?color=brightgreen)](https://www.npmjs.com/package/@fontsource/sn-pro) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/sn-pro)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/sn-pro)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) + +The CSS and web font files to easily self-host the “SN Pro” font. Please visit the main [Fontsource website](https://fontsource.org/fonts/sn-pro) to view more details on this package. + +## Quick Installation + +Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). + +```javascript +npm install @fontsource/sn-pro +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource/sn-pro"; // Defaults to weight 400 +import "@fontsource/sn-pro/400.css"; // Specify weight +import "@fontsource/sn-pro/400-italic.css"; // Specify weight and style +``` + +Supported variables: +- Weights: `[200,300,400,500,600,700,800,900]` +- Styles: `[normal,italic]` +- Subsets: `[latin]` + +> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/sn-pro). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "SN Pro"; +} +``` + +## Licensing +Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. + +SN Pro Authors +[OFL-1.1](https://github.com/supernotes/sn-pro/blob/main/OFL.txt) + +## Other Notes +Font version (provided by source): `v1.1.0`. + +If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). \ No newline at end of file diff --git a/fonts/other/sn-pro/files/sn-pro-latin-200-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-200-italic.woff new file mode 100644 index 00000000000..23cc11ad950 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-200-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-200-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-200-italic.woff2 new file mode 100644 index 00000000000..5a18d165296 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-200-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-200-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-200-normal.woff new file mode 100644 index 00000000000..255ccbe3535 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-200-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-200-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-200-normal.woff2 new file mode 100644 index 00000000000..d68dda2ceea Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-200-normal.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-300-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-300-italic.woff new file mode 100644 index 00000000000..8f96996a660 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-300-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-300-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-300-italic.woff2 new file mode 100644 index 00000000000..570ba514b3c Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-300-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-300-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-300-normal.woff new file mode 100644 index 00000000000..d5d3b497fa2 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-300-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-300-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-300-normal.woff2 new file mode 100644 index 00000000000..733157c8e3e Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-300-normal.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-400-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-400-italic.woff new file mode 100644 index 00000000000..6f646cdaecc Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-400-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-400-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-400-italic.woff2 new file mode 100644 index 00000000000..6b55c9f385e Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-400-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-400-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-400-normal.woff new file mode 100644 index 00000000000..ad1956e6730 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-400-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-400-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-400-normal.woff2 new file mode 100644 index 00000000000..bf7ef46c8ba Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-400-normal.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-500-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-500-italic.woff new file mode 100644 index 00000000000..172fec0d92a Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-500-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-500-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-500-italic.woff2 new file mode 100644 index 00000000000..43a3bc82e6a Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-500-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-500-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-500-normal.woff new file mode 100644 index 00000000000..227ca9895c0 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-500-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-500-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-500-normal.woff2 new file mode 100644 index 00000000000..3223e3b318c Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-500-normal.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-600-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-600-italic.woff new file mode 100644 index 00000000000..5df1604844d Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-600-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-600-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-600-italic.woff2 new file mode 100644 index 00000000000..39f069623bc Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-600-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-600-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-600-normal.woff new file mode 100644 index 00000000000..e80d93240af Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-600-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-600-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-600-normal.woff2 new file mode 100644 index 00000000000..977eb176c74 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-600-normal.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-700-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-700-italic.woff new file mode 100644 index 00000000000..6befa823295 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-700-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-700-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-700-italic.woff2 new file mode 100644 index 00000000000..1d43b9ecf22 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-700-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-700-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-700-normal.woff new file mode 100644 index 00000000000..2e444420076 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-700-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-700-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-700-normal.woff2 new file mode 100644 index 00000000000..38e28c85cdc Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-700-normal.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-800-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-800-italic.woff new file mode 100644 index 00000000000..6bbc8f6cf14 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-800-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-800-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-800-italic.woff2 new file mode 100644 index 00000000000..ddacab1c433 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-800-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-800-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-800-normal.woff new file mode 100644 index 00000000000..caade7433ed Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-800-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-800-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-800-normal.woff2 new file mode 100644 index 00000000000..49435f92c08 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-800-normal.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-900-italic.woff b/fonts/other/sn-pro/files/sn-pro-latin-900-italic.woff new file mode 100644 index 00000000000..7289aabb5ea Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-900-italic.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-900-italic.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-900-italic.woff2 new file mode 100644 index 00000000000..aac43234cd2 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-900-italic.woff2 differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-900-normal.woff b/fonts/other/sn-pro/files/sn-pro-latin-900-normal.woff new file mode 100644 index 00000000000..2bcd9dc71c4 Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-900-normal.woff differ diff --git a/fonts/other/sn-pro/files/sn-pro-latin-900-normal.woff2 b/fonts/other/sn-pro/files/sn-pro-latin-900-normal.woff2 new file mode 100644 index 00000000000..8b3100caf4f Binary files /dev/null and b/fonts/other/sn-pro/files/sn-pro-latin-900-normal.woff2 differ diff --git a/fonts/other/sn-pro/index.css b/fonts/other/sn-pro/index.css new file mode 100644 index 00000000000..2a7a5628247 --- /dev/null +++ b/fonts/other/sn-pro/index.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-400-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/sn-pro-latin-400-normal.woff2) format('woff2'), url(./files/sn-pro-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-200-italic.css b/fonts/other/sn-pro/latin-200-italic.css new file mode 100644 index 00000000000..c1bb87adae5 --- /dev/null +++ b/fonts/other/sn-pro/latin-200-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-200-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 200; + src: url(./files/sn-pro-latin-200-italic.woff2) format('woff2'), url(./files/sn-pro-latin-200-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-200.css b/fonts/other/sn-pro/latin-200.css new file mode 100644 index 00000000000..8a343584160 --- /dev/null +++ b/fonts/other/sn-pro/latin-200.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-200-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/sn-pro-latin-200-normal.woff2) format('woff2'), url(./files/sn-pro-latin-200-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-300-italic.css b/fonts/other/sn-pro/latin-300-italic.css new file mode 100644 index 00000000000..7738b840625 --- /dev/null +++ b/fonts/other/sn-pro/latin-300-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-300-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 300; + src: url(./files/sn-pro-latin-300-italic.woff2) format('woff2'), url(./files/sn-pro-latin-300-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-300.css b/fonts/other/sn-pro/latin-300.css new file mode 100644 index 00000000000..9174948a2f6 --- /dev/null +++ b/fonts/other/sn-pro/latin-300.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-300-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/sn-pro-latin-300-normal.woff2) format('woff2'), url(./files/sn-pro-latin-300-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-400-italic.css b/fonts/other/sn-pro/latin-400-italic.css new file mode 100644 index 00000000000..0415bcb148f --- /dev/null +++ b/fonts/other/sn-pro/latin-400-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-400-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 400; + src: url(./files/sn-pro-latin-400-italic.woff2) format('woff2'), url(./files/sn-pro-latin-400-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-400.css b/fonts/other/sn-pro/latin-400.css new file mode 100644 index 00000000000..2a7a5628247 --- /dev/null +++ b/fonts/other/sn-pro/latin-400.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-400-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/sn-pro-latin-400-normal.woff2) format('woff2'), url(./files/sn-pro-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-500-italic.css b/fonts/other/sn-pro/latin-500-italic.css new file mode 100644 index 00000000000..0334eacf16b --- /dev/null +++ b/fonts/other/sn-pro/latin-500-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-500-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 500; + src: url(./files/sn-pro-latin-500-italic.woff2) format('woff2'), url(./files/sn-pro-latin-500-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-500.css b/fonts/other/sn-pro/latin-500.css new file mode 100644 index 00000000000..32f6c21cd5d --- /dev/null +++ b/fonts/other/sn-pro/latin-500.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-500-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/sn-pro-latin-500-normal.woff2) format('woff2'), url(./files/sn-pro-latin-500-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-600-italic.css b/fonts/other/sn-pro/latin-600-italic.css new file mode 100644 index 00000000000..54dc6738a79 --- /dev/null +++ b/fonts/other/sn-pro/latin-600-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-600-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 600; + src: url(./files/sn-pro-latin-600-italic.woff2) format('woff2'), url(./files/sn-pro-latin-600-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-600.css b/fonts/other/sn-pro/latin-600.css new file mode 100644 index 00000000000..b95d6492151 --- /dev/null +++ b/fonts/other/sn-pro/latin-600.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-600-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/sn-pro-latin-600-normal.woff2) format('woff2'), url(./files/sn-pro-latin-600-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-700-italic.css b/fonts/other/sn-pro/latin-700-italic.css new file mode 100644 index 00000000000..eba16cc6e19 --- /dev/null +++ b/fonts/other/sn-pro/latin-700-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-700-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 700; + src: url(./files/sn-pro-latin-700-italic.woff2) format('woff2'), url(./files/sn-pro-latin-700-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-700.css b/fonts/other/sn-pro/latin-700.css new file mode 100644 index 00000000000..24b5775c8b0 --- /dev/null +++ b/fonts/other/sn-pro/latin-700.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-700-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/sn-pro-latin-700-normal.woff2) format('woff2'), url(./files/sn-pro-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-800-italic.css b/fonts/other/sn-pro/latin-800-italic.css new file mode 100644 index 00000000000..9310f7689cc --- /dev/null +++ b/fonts/other/sn-pro/latin-800-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-800-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 800; + src: url(./files/sn-pro-latin-800-italic.woff2) format('woff2'), url(./files/sn-pro-latin-800-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-800.css b/fonts/other/sn-pro/latin-800.css new file mode 100644 index 00000000000..3850ac15a94 --- /dev/null +++ b/fonts/other/sn-pro/latin-800.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-800-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/sn-pro-latin-800-normal.woff2) format('woff2'), url(./files/sn-pro-latin-800-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-900-italic.css b/fonts/other/sn-pro/latin-900-italic.css new file mode 100644 index 00000000000..5f6a67916c7 --- /dev/null +++ b/fonts/other/sn-pro/latin-900-italic.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-900-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 900; + src: url(./files/sn-pro-latin-900-italic.woff2) format('woff2'), url(./files/sn-pro-latin-900-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-900.css b/fonts/other/sn-pro/latin-900.css new file mode 100644 index 00000000000..84381435952 --- /dev/null +++ b/fonts/other/sn-pro/latin-900.css @@ -0,0 +1,8 @@ +/* sn-pro-latin-900-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/sn-pro-latin-900-normal.woff2) format('woff2'), url(./files/sn-pro-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin-italic.css b/fonts/other/sn-pro/latin-italic.css new file mode 100644 index 00000000000..7d8c04530bd --- /dev/null +++ b/fonts/other/sn-pro/latin-italic.css @@ -0,0 +1,71 @@ +/* sn-pro-latin-200-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 200; + src: url(./files/sn-pro-latin-200-italic.woff2) format('woff2'), url(./files/sn-pro-latin-200-italic.woff) format('woff'); +} + +/* sn-pro-latin-300-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 300; + src: url(./files/sn-pro-latin-300-italic.woff2) format('woff2'), url(./files/sn-pro-latin-300-italic.woff) format('woff'); +} + +/* sn-pro-latin-400-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 400; + src: url(./files/sn-pro-latin-400-italic.woff2) format('woff2'), url(./files/sn-pro-latin-400-italic.woff) format('woff'); +} + +/* sn-pro-latin-500-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 500; + src: url(./files/sn-pro-latin-500-italic.woff2) format('woff2'), url(./files/sn-pro-latin-500-italic.woff) format('woff'); +} + +/* sn-pro-latin-600-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 600; + src: url(./files/sn-pro-latin-600-italic.woff2) format('woff2'), url(./files/sn-pro-latin-600-italic.woff) format('woff'); +} + +/* sn-pro-latin-700-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 700; + src: url(./files/sn-pro-latin-700-italic.woff2) format('woff2'), url(./files/sn-pro-latin-700-italic.woff) format('woff'); +} + +/* sn-pro-latin-800-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 800; + src: url(./files/sn-pro-latin-800-italic.woff2) format('woff2'), url(./files/sn-pro-latin-800-italic.woff) format('woff'); +} + +/* sn-pro-latin-900-italic */ +@font-face { + font-family: 'SN Pro'; + font-style: italic; + font-display: swap; + font-weight: 900; + src: url(./files/sn-pro-latin-900-italic.woff2) format('woff2'), url(./files/sn-pro-latin-900-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/latin.css b/fonts/other/sn-pro/latin.css new file mode 100644 index 00000000000..b3b5e6ed764 --- /dev/null +++ b/fonts/other/sn-pro/latin.css @@ -0,0 +1,71 @@ +/* sn-pro-latin-200-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 200; + src: url(./files/sn-pro-latin-200-normal.woff2) format('woff2'), url(./files/sn-pro-latin-200-normal.woff) format('woff'); +} + +/* sn-pro-latin-300-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 300; + src: url(./files/sn-pro-latin-300-normal.woff2) format('woff2'), url(./files/sn-pro-latin-300-normal.woff) format('woff'); +} + +/* sn-pro-latin-400-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/sn-pro-latin-400-normal.woff2) format('woff2'), url(./files/sn-pro-latin-400-normal.woff) format('woff'); +} + +/* sn-pro-latin-500-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/sn-pro-latin-500-normal.woff2) format('woff2'), url(./files/sn-pro-latin-500-normal.woff) format('woff'); +} + +/* sn-pro-latin-600-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/sn-pro-latin-600-normal.woff2) format('woff2'), url(./files/sn-pro-latin-600-normal.woff) format('woff'); +} + +/* sn-pro-latin-700-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/sn-pro-latin-700-normal.woff2) format('woff2'), url(./files/sn-pro-latin-700-normal.woff) format('woff'); +} + +/* sn-pro-latin-800-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 800; + src: url(./files/sn-pro-latin-800-normal.woff2) format('woff2'), url(./files/sn-pro-latin-800-normal.woff) format('woff'); +} + +/* sn-pro-latin-900-normal */ +@font-face { + font-family: 'SN Pro'; + font-style: normal; + font-display: swap; + font-weight: 900; + src: url(./files/sn-pro-latin-900-normal.woff2) format('woff2'), url(./files/sn-pro-latin-900-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/sn-pro/metadata.json b/fonts/other/sn-pro/metadata.json new file mode 100644 index 00000000000..a0210bb0f34 --- /dev/null +++ b/fonts/other/sn-pro/metadata.json @@ -0,0 +1,19 @@ +{ + "id": "sn-pro", + "family": "SN Pro", + "subsets": ["latin"], + "weights": [200, 300, 400, 500, 600, 700, 800, 900], + "styles": ["normal", "italic"], + "defSubset": "latin", + "variable": false, + "lastModified": "2024-04-24", + "version": "v1.1.0", + "category": "sans-serif", + "license": { + "type": "OFL-1.1", + "url": "https://github.com/supernotes/sn-pro/blob/main/OFL.txt", + "attribution": "SN Pro Authors" + }, + "source": "https://github.com/supernotes/sn-pro", + "type": "other" +} \ No newline at end of file diff --git a/fonts/other/sn-pro/package.json b/fonts/other/sn-pro/package.json new file mode 100644 index 00000000000..25b6ea8fdc3 --- /dev/null +++ b/fonts/other/sn-pro/package.json @@ -0,0 +1,29 @@ +{ + "name": "@fontsource/sn-pro", + "version": "5.0.0", + "description": "Self-host the SN Pro font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "sn-pro", + "SN Pro", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "author": "SN Pro Authors", + "license": "OFL-1.1", + "homepage": "https://fontsource.org/fonts/sn-pro", + "repository": { + "type": "git", + "url": "https://github.com/fontsource/font-files.git", + "directory": "fonts/other/sn-pro" + } +} \ No newline at end of file diff --git a/fonts/other/sn-pro/scss/metadata.scss b/fonts/other/sn-pro/scss/metadata.scss new file mode 100644 index 00000000000..e3c017cd657 --- /dev/null +++ b/fonts/other/sn-pro/scss/metadata.scss @@ -0,0 +1,14 @@ +$id: 'sn-pro' !default; +$family: 'SN Pro' !default; +$category: sans-serif !default; +$subsets: (latin) !default; +$weights: (200, 300, 400, 500, 600, 700, 800, 900) !default; +$styles: (normal, italic) !default; +$axes: null !default; +$defaults: ( + subset: latin, + weight: 400, + style: normal, + axis: null, +) !default; +$unicode: null !default; diff --git a/fonts/other/sn-pro/scss/mixins.scss b/fonts/other/sn-pro/scss/mixins.scss new file mode 100644 index 00000000000..0571337fab3 --- /dev/null +++ b/fonts/other/sn-pro/scss/mixins.scss @@ -0,0 +1,192 @@ +@use 'sass:list'; +@use 'sass:map'; +@use 'sass:math'; +@use 'sass:meta'; +@use 'sass:string'; + +@use 'metadata'; + +$metadata: meta.module-variables(metadata) !default; +$directory: null !default; + +$family: null !default; +$display: null !default; +$formats: null !default; +$subsets: null !default; +$weights: null !default; +$styles: null !default; +$axes: null !default; + +// Deprecated +$displayVar: null !default; + +@mixin generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + + @if $displayVar != null { + @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726)."; + } + + $isVariable: map.get($metadata, axes) != null; + + $directory: if( + $directory, + $directory, + '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files' + ); + + $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', '')); + $display: if($display, $display, swap); + $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats); + $subsets: if( + $subsets, + if($subsets == all, map.get($metadata, subsets), $subsets), + map.get($metadata, subsets) + ); + $weights: if( + $weights, + if($weights == all, map.get($metadata, weights), $weights), + map.get($metadata, defaults, weight) + ); + $styles: if( + $styles, + if($styles == all, map.get($metadata, styles), $styles), + map.get($metadata, defaults, style) + ); + $axes: if( + $axes, + if($axes == all, full, $axes), + if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null) + ); + + @each $subset in $subsets { + @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) { + // If condition is true, generate faces for the current subset + @if ( + // If there is no unicode information for the font or + ($unicodeSubset == null) or + // If the subset match a unicode subset or + ($subset == $unicodeSubset) or + ( + // If $unicodeSubset is a numeric unicode subset + // and current subset exists in the list of font subsets but does not match any unicode subset + // then generate faces for this numeric unicode subset as it is representing part of the current subset + list.index(map.get($metadata, subsets), $subset) and not + map.has-key($metadata, unicode, $subset) and not + list.index(map.get($metadata, subsets), $unicodeSubset) + ) + ) { + @each $weight in if($axes, null, $weights) { + @each $axis in $axes { + @each $style in $styles { + $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}'; + + $src: (); + @each $format in $formats { + $src: append( + $src, + url('#{$directory}/#{$variant}.#{$format}') + format('#{$format}#{if($axis, '-variations', '')}'), + comma + ); + } + + @content (( + metadata: $metadata, + directory: $directory, + family: $family, + display: $display, + formats: $formats, + subsets: $subsets, + weights: $weights, + styles: $styles, + axes: $axes, + + variant: $variant, + subset: $subset, + unicodeSubset: $unicodeSubset, + unicodeRange: $unicodeRange, + weight: $weight, + axis: $axis, + style: $style, + + font-family: string.quote($family), + font-style: if( + (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt), + oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg, + $style + ), + font-display: $display, + font-weight: if( + (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght), + map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max), + $weight + ), + font-stretch: if( + (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth), + '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%', + null + ), + src: $src, + unicode-range: $unicodeRange, + )); + } + } + } + } + } + } +} + +@mixin faces( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + // Deprecated + $displayVar: $displayVar +) { + @include generator( + $metadata: $metadata, + $directory: $directory, + $family: $family, + $display: $display, + $formats: $formats, + $subsets: $subsets, + $weights: $weights, + $styles: $styles, + $axes: $axes, + + $displayVar: $displayVar + ) + using ($props) { + /* #{map.get($props, variant)} */ + @font-face { + font-family: map.get($props, font-family); + font-style: map.get($props, font-style); + font-display: map.get($props, font-display); + font-weight: map.get($props, font-weight); + font-stretch: map.get($props, font-stretch); + unicode-range: map.get($props, unicode-range); + src: map.get($props, src); + } + } +} diff --git a/fonts/other/sn-pro/unicode.json b/fonts/other/sn-pro/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/other/sn-pro/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file