- Open hterm and press Ctrl+Shift+J to open the developer console for your terminal
- Paste the following JavaScript into the console
term_.prefs_.set(
"user-css",
"https://cdn.jsdelivr.net/gh/Lillecarl/fontastic@main/style.css",
);
term_.prefs_.set("font-family", '"hack", monospace');
- Profit
- Create a GitHub repo and clone it to your developer environment
- Install woff2 tools in your developer environment (
nix shell nixpkgs#woff2
works) - Go to NerdFonts.com and copy the download URL for your favorite font.
- Download the font into your repository
- Run woff2_compress on the font variant you want to use (probably regular)
- Create a css file like the one in this repo
- Commit your woff2 file and your css file, push
- Browse to your stylesheet on github.com, copy the link into https://www.jsdelivr.com/GitHub
- Use the jsdelivr link in
term_.prefs_.set("user-css", "url");