Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lillecarl/fontastic
https://github.com/lillecarl/fontastic
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lillecarl/fontastic
- Owner: Lillecarl
- License: other
- Created: 2024-11-28T19:35:42.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-28T20:13:58.000Z (about 1 month ago)
- Last Synced: 2024-11-28T20:32:17.881Z (about 1 month ago)
- Language: CSS
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Hack Nerd Font for ChromeOS hterm
## How to use
1. Open hterm and press Ctrl+Shift+J to open the developer console for your terminal
2. Paste the following JavaScript into the console
```javascript
term_.prefs_.set(
"user-css",
"https://cdn.jsdelivr.net/gh/Lillecarl/fontastic@main/style.css",
);
term_.prefs_.set("font-family", '"hack", monospace');
```
3. Profit## How to make this yourself
1. Create a GitHub repo and clone it to your developer environment
2. Install woff2 tools in your developer environment (`nix shell nixpkgs#woff2` works)
3. Go to [NerdFonts.com](https://nerdfonts.com) and copy the download URL for your favorite font.
4. Download the font into your repository
5. Run woff2_compress on the font variant you want to use (probably regular)
6. Create a css file like the one in this repo
7. Commit your woff2 file and your css file, push
8. Browse to your stylesheet on github.com, copy the link into https://www.jsdelivr.com/GitHub
9. Use the jsdelivr link in `term_.prefs_.set("user-css", "url");`