gitmyhub

Hack

Shell ★ 17k updated 3y ago

A typeface designed for source code

Hack is a free, open-source monospaced font designed for code editors and terminals, tuned for legibility at small sizes with four weights, broad character set support, and Powerline glyphs built in.

Shellsetup: easycomplexity 1/5

Hack is a free typeface designed specifically for reading and writing source code. A typeface is the family of letter shapes you see on screen; this one is monospaced, meaning every character takes up the same horizontal space, which keeps columns of code lined up neatly. Hack builds on the older free typefaces Bitstream Vera and DejaVu, and tunes the letter shapes for the small text sizes commonly used in code editors, roughly 8 to 14 points. The aim is letters that stay legible and easy to tell apart when you are staring at code all day.

The download includes Regular, Bold, Italic and Bold Italic styles, supports the ASCII, Latin-1, Latin Extended A, Greek and Cyrillic character sets, and includes Powerline glyphs by default for command-line prompts that draw arrow shapes. Installation is platform-specific: on Linux you copy the font files into a system or user font folder and refresh the font cache; on macOS you double-click the extracted files; on Windows the maintainers provide a dedicated installer that handles font-update quirks. The font is also available through many package managers across Arch, Debian, Ubuntu, Fedora, Homebrew, Chocolatey and others. For websites, Hack ships as woff and woff2 web-font files served through the jsDelivr and cdnjs CDNs, so you can drop it into a page with one stylesheet link and a CSS font-family rule.

Someone would actually use this if they want a clean, free, open-source font for their code editor, terminal, or a website that displays code blocks. There is also a companion repository called alt-hack with alternate glyph styles for users who want to tweak specific characters. The full README is longer than what was provided.

Where it fits