Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(font): add Hack-ZeroSlash #78

Merged
merged 2 commits into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/400-italic.css
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');
}
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/400.css
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');
}
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/700-italic.css
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');
}
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/700.css
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');
}
2 changes: 2 additions & 0 deletions fonts/other/hack-zeroslash/CHANGELOG.md
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).
27 changes: 27 additions & 0 deletions fonts/other/hack-zeroslash/LICENSE
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.
47 changes: 47 additions & 0 deletions fonts/other/hack-zeroslash/README.md
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/index.css
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');
}
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/latin-400-italic.css
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');
}
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/latin-400.css
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');
}
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/latin-700-italic.css
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');
}
8 changes: 8 additions & 0 deletions fonts/other/hack-zeroslash/latin-700.css
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');
}
17 changes: 17 additions & 0 deletions fonts/other/hack-zeroslash/latin-italic.css
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');
}
17 changes: 17 additions & 0 deletions fonts/other/hack-zeroslash/latin.css
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');
}
19 changes: 19 additions & 0 deletions fonts/other/hack-zeroslash/metadata.json
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"
}
29 changes: 29 additions & 0 deletions fonts/other/hack-zeroslash/package.json
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"
}
}
14 changes: 14 additions & 0 deletions fonts/other/hack-zeroslash/scss/metadata.scss
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;
Loading