-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(font): add hack-zeroSlash (#78)
* feat(font): add hack-zeroslash * Apply suggestions from code review Co-authored-by: Ayu <[email protected]> --------- Co-authored-by: Ayu <[email protected]>
- Loading branch information
1 parent
72a36f1
commit 96dedf9
Showing
27 changed files
with
437 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Changelog | ||
See the [Fontsource CHANGELOG.md](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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). |
Binary file added
BIN
+33.6 KB
fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff
Binary file not shown.
Binary file added
BIN
+26.4 KB
fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-italic.woff2
Binary file not shown.
Binary file added
BIN
+28.6 KB
fonts/other/hack-zeroslash/files/hack-zeroslash-latin-400-normal.woff
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+33.3 KB
fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff
Binary file not shown.
Binary file added
BIN
+26.1 KB
fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-italic.woff2
Binary file not shown.
Binary file added
BIN
+29.1 KB
fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff
Binary file not shown.
Binary file added
BIN
+22.3 KB
fonts/other/hack-zeroslash/files/hack-zeroslash-latin-700-normal.woff2
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
Oops, something went wrong.