Web fonts for programming, including Powerline enabled fonts working in Secure Shell and working also on Chromebook (or pretty much anything running Chrome).
Preview the fonts (courtesy of raw.githack.com)
There are several font-family
you can choose from.
Powerline enabled:
Anonymous Pro
- Anonymice PowerlineDejaVu Sans Mono
- DejaVu Sans Mono for PowerlineHack
- Hack WebfontInconsolata
- Inconsolata for PowerlineInconsolata-g
- Inconsolata-g for PowerlineIosevka
- Iosevka WebfontLiberation Mono
- Literation Mono PowerlineMonofur for Powerline
- Monofur for PowerlineNoto Mono for Powerline
- Noto Mono for PowerlinePT Mono
- PT Mono for PowerlineSource Code Pro
- Source Code for PowerlineUbuntu Mono
- Ubuntu Mono derivative Powerline
Other fixed-width fonts:
Fixedsys Excelsior
- Fixedsys Excelsior
See Slant if you don't know which to choose.
Usage example for Secure Shell
- Launch Secure Shell and click on Options
(or go to
chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/nassh_preferences_editor.html
):- Set font-family:
"Source Code Pro", monospace
- Set Custom CSS (URI) to one of the following:
- jsdelivr CDN at hash (longest cache expiry):
https://cdn.jsdelivr.net/gh/cfal/code-web-fonts@7b73784ae5acd0d783f9f3629c845a9e51ec1dbf/CodeFonts.css
- jsdelivr CDN (latest):
https://cdn.jsdelivr.net/gh/cfal/code-web-fonts/CodeFonts.css
- github (latest):
https://raw.githubusercontent.com/cfal/code-web-fonts/master/CodeFonts.css
- jsdelivr CDN at hash (longest cache expiry):
- Set font-family:
Usage example for Crosh Window
- Start crosh window then press
Ctrl+Shift+J
and paste in the following:
term_.prefs_.set('font-family', '"Source Code Pro", monospace');
term_.prefs_.set('user-css', 'https://cdn.jsdelivr.net/gh/cfal/code-web-fonts@7b73784ae5acd0d783f9f3629c845a9e51ec1dbf/CodeFonts.css');
If you have Crouton installed on a developer mode Chromebook, or if you're on pretty much any other OS, you can install those fonts locally or copy them locally and it'll work with little to no effort.
To add a new font, you can submit a GitHub pull request through a forked repository. Your pull request should:
- Include a new font file in WOFF2 format.
- Add your font to
CodeFonts.css
,preview.html
andREADME.md
(might use Transfonter to help with the CSS).
There are various methods, including:
-
Using FontForge:
#!/usr/bin/env fontforge Open($1) Generate($1:r + ".woff2")`