diff --git a/fonts/other/hack-zeroslash/400-italic.css b/fonts/other/hack-zeroslash/400-italic.css new file mode 100644 index 00000000000..7b9c70ff81a --- /dev/null +++ b/fonts/other/hack-zeroslash/400-italic.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-400-italic */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: italic; + font-display: swap; + font-weight: 400; + src: url(./files/hack-zeroslash-latin-400-italic.woff2) format('woff2'), url(./files/hack-zeroslash-latin-400-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/400.css b/fonts/other/hack-zeroslash/400.css new file mode 100644 index 00000000000..08d1e233e85 --- /dev/null +++ b/fonts/other/hack-zeroslash/400.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-400-normal */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/hack-zeroslash-latin-400-normal.woff2) format('woff2'), url(./files/hack-zeroslash-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/700-italic.css b/fonts/other/hack-zeroslash/700-italic.css new file mode 100644 index 00000000000..20dae15ef93 --- /dev/null +++ b/fonts/other/hack-zeroslash/700-italic.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-700-italic */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: italic; + font-display: swap; + font-weight: 700; + src: url(./files/hack-zeroslash-latin-700-italic.woff2) format('woff2'), url(./files/hack-zeroslash-latin-700-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/700.css b/fonts/other/hack-zeroslash/700.css new file mode 100644 index 00000000000..74924056d93 --- /dev/null +++ b/fonts/other/hack-zeroslash/700.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-700-normal */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/hack-zeroslash-latin-700-normal.woff2) format('woff2'), url(./files/hack-zeroslash-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/CHANGELOG.md b/fonts/other/hack-zeroslash/CHANGELOG.md new file mode 100644 index 00000000000..e798685bbf8 --- /dev/null +++ b/fonts/other/hack-zeroslash/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/hack-zeroslash/LICENSE b/fonts/other/hack-zeroslash/LICENSE new file mode 100644 index 00000000000..9a489d1ae0d --- /dev/null +++ b/fonts/other/hack-zeroslash/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2018 Source Foundry Authors + +MIT License +Copyright (c) 2024 atariq11700 + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +BITSTREAM VERA LICENSE +Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: + +The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. + +The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". + +This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. + +The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. + +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 BITSTREAM OR THE GNOME FOUNDATION 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. + +Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org. diff --git a/fonts/other/hack-zeroslash/README.md b/fonts/other/hack-zeroslash/README.md new file mode 100644 index 00000000000..e3dd969285b --- /dev/null +++ b/fonts/other/hack-zeroslash/README.md @@ -0,0 +1,47 @@ +# Fontsource Hack-ZeroSlash + +[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/hack-zeroslash?color=brightgreen)](https://www.npmjs.com/package/@fontsource/hack-zeroslash) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/hack-zeroslash)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/hack-zeroslash)](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 “Hack-ZeroSlash” font. Please visit the main [Fontsource website](https://fontsource.org/fonts/hack-zeroslash) 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/hack-zeroslash +``` + +Within your app entry file or site component, import it in. + +```javascript +import "@fontsource/hack-zeroslash"; // Defaults to weight 400 +import "@fontsource/hack-zeroslash/400.css"; // Specify weight +import "@fontsource/hack-zeroslash/400-italic.css"; // Specify weight and style +``` + +Supported variables: +- Weights: `[400,700]` +- 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/hack-zeroslash). + +Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. + +```css +body { + font-family: "Hack-ZeroSlash"; +} +``` + +## 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. + +atariq11700 +[mit](https://github.com/atariq11700/HackFSlashedZeros/blob/master/LICENSE) + +## Other Notes +Font version (provided by source): `v1.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/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff new file mode 100644 index 00000000000..7e0b1f68351 Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff differ diff --git a/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff2 b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff2 new file mode 100644 index 00000000000..21c948c8e5b Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff2 differ diff --git a/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-normal.woff b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-normal.woff new file mode 100644 index 00000000000..ed61bcb86be Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-normal.woff differ diff --git a/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-normal.woff2 b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-normal.woff2 new file mode 100644 index 00000000000..51b06df63ec Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-normal.woff2 differ diff --git a/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff new file mode 100644 index 00000000000..f26f18f0eb9 Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff differ diff --git a/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff2 b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff2 new file mode 100644 index 00000000000..6d5a40d6bca Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff2 differ diff --git a/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff new file mode 100644 index 00000000000..55b4e81eade Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff differ diff --git a/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff2 b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff2 new file mode 100644 index 00000000000..3229e0bfe26 Binary files /dev/null and b/fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff2 differ diff --git a/fonts/other/hack-zeroslash/index.css b/fonts/other/hack-zeroslash/index.css new file mode 100644 index 00000000000..08d1e233e85 --- /dev/null +++ b/fonts/other/hack-zeroslash/index.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-400-normal */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/hack-zeroslash-latin-400-normal.woff2) format('woff2'), url(./files/hack-zeroslash-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/latin-400-italic.css b/fonts/other/hack-zeroslash/latin-400-italic.css new file mode 100644 index 00000000000..7b9c70ff81a --- /dev/null +++ b/fonts/other/hack-zeroslash/latin-400-italic.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-400-italic */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: italic; + font-display: swap; + font-weight: 400; + src: url(./files/hack-zeroslash-latin-400-italic.woff2) format('woff2'), url(./files/hack-zeroslash-latin-400-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/latin-400.css b/fonts/other/hack-zeroslash/latin-400.css new file mode 100644 index 00000000000..08d1e233e85 --- /dev/null +++ b/fonts/other/hack-zeroslash/latin-400.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-400-normal */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/hack-zeroslash-latin-400-normal.woff2) format('woff2'), url(./files/hack-zeroslash-latin-400-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/latin-700-italic.css b/fonts/other/hack-zeroslash/latin-700-italic.css new file mode 100644 index 00000000000..20dae15ef93 --- /dev/null +++ b/fonts/other/hack-zeroslash/latin-700-italic.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-700-italic */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: italic; + font-display: swap; + font-weight: 700; + src: url(./files/hack-zeroslash-latin-700-italic.woff2) format('woff2'), url(./files/hack-zeroslash-latin-700-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/latin-700.css b/fonts/other/hack-zeroslash/latin-700.css new file mode 100644 index 00000000000..74924056d93 --- /dev/null +++ b/fonts/other/hack-zeroslash/latin-700.css @@ -0,0 +1,8 @@ +/* hack-zeroslash-latin-700-normal */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/hack-zeroslash-latin-700-normal.woff2) format('woff2'), url(./files/hack-zeroslash-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/latin-italic.css b/fonts/other/hack-zeroslash/latin-italic.css new file mode 100644 index 00000000000..ac8da47aa61 --- /dev/null +++ b/fonts/other/hack-zeroslash/latin-italic.css @@ -0,0 +1,17 @@ +/* hack-zeroslash-latin-400-italic */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: italic; + font-display: swap; + font-weight: 400; + src: url(./files/hack-zeroslash-latin-400-italic.woff2) format('woff2'), url(./files/hack-zeroslash-latin-400-italic.woff) format('woff'); +} + +/* hack-zeroslash-latin-700-italic */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: italic; + font-display: swap; + font-weight: 700; + src: url(./files/hack-zeroslash-latin-700-italic.woff2) format('woff2'), url(./files/hack-zeroslash-latin-700-italic.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/latin.css b/fonts/other/hack-zeroslash/latin.css new file mode 100644 index 00000000000..8065c0ae552 --- /dev/null +++ b/fonts/other/hack-zeroslash/latin.css @@ -0,0 +1,17 @@ +/* hack-zeroslash-latin-400-normal */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/hack-zeroslash-latin-400-normal.woff2) format('woff2'), url(./files/hack-zeroslash-latin-400-normal.woff) format('woff'); +} + +/* hack-zeroslash-latin-700-normal */ +@font-face { + font-family: 'Hack-ZeroSlash'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/hack-zeroslash-latin-700-normal.woff2) format('woff2'), url(./files/hack-zeroslash-latin-700-normal.woff) format('woff'); +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/metadata.json b/fonts/other/hack-zeroslash/metadata.json new file mode 100644 index 00000000000..1d8c029ef32 --- /dev/null +++ b/fonts/other/hack-zeroslash/metadata.json @@ -0,0 +1,19 @@ +{ + "id": "hack-zeroslash", + "family": "Hack-ZeroSlash", + "subsets": ["latin"], + "weights": [400, 700], + "styles": ["normal", "italic"], + "defSubset": "latin", + "variable": false, + "lastModified": "2024-07-06", + "version": "v1.0", + "category": "monospace", + "license": { + "type": "MIT", + "url": "https://github.com/atariq11700/HackFSlashedZeros/blob/master/LICENSE", + "attribution": "Copyright 2018 Source Foundry Authors and atariq11700" + }, + "source": "https://github.com/atariq11700/HackFSlashedZeros", + "type": "other" +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/package.json b/fonts/other/hack-zeroslash/package.json new file mode 100644 index 00000000000..0d20cbc67c1 --- /dev/null +++ b/fonts/other/hack-zeroslash/package.json @@ -0,0 +1,29 @@ +{ + "name": "@fontsource/hack-zeroslash", + "version": "5.0.0", + "description": "Self-host the Hack-ZeroSlash font in a neatly bundled NPM package.", + "main": "index.css", + "publishConfig": {"access": "public"}, + "keywords": [ + "fontsource", + "font", + "font family", + "google fonts", + "hack-zeroslash", + "Hack-ZeroSlash", + "css", + "sass", + "front-end", + "web", + "typeface", + "variable" + ], + "author": "atariq11700", + "license": "mit", + "homepage": "https://fontsource.org/fonts/hack-zeroslash", + "repository": { + "type": "git", + "url": "https://github.com/fontsource/font-files.git", + "directory": "fonts/other/hack-zeroslash" + } +} \ No newline at end of file diff --git a/fonts/other/hack-zeroslash/scss/metadata.scss b/fonts/other/hack-zeroslash/scss/metadata.scss new file mode 100644 index 00000000000..5ec81906847 --- /dev/null +++ b/fonts/other/hack-zeroslash/scss/metadata.scss @@ -0,0 +1,14 @@ +$id: 'hack-zeroslash' !default; +$family: 'Hack-ZeroSlash' !default; +$category: monospace !default; +$subsets: (latin) !default; +$weights: (400, 700) !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/hack-zeroslash/scss/mixins.scss b/fonts/other/hack-zeroslash/scss/mixins.scss new file mode 100644 index 00000000000..0571337fab3 --- /dev/null +++ b/fonts/other/hack-zeroslash/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/hack-zeroslash/unicode.json b/fonts/other/hack-zeroslash/unicode.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/fonts/other/hack-zeroslash/unicode.json @@ -0,0 +1 @@ +{} \ No newline at end of file