Hack

Replaces: Menlo (87%) | MIT | Updated: Nov 2026
Hack font preview

About Hack

Classification
mono
Weights
400, 700
Features
Italics
MIT License

Most permissive license. Almost no restrictions on use or distribution.

What's allowed?
  • ✓ Client work
  • ✓ SaaS / Web apps
  • ✓ YouTube / Video
  • ✓ Sell products
  • ✓ Print materials
Full license guide →
Get Hack Free ↗

Hack is a monospace family for source code from Source Foundry, an open-source font project. It is a reworking of DejaVu Sans Mono, which is itself built on Bitstream Vera Sans Mono, and that ancestry shapes both the letterforms and the licence. The current release is v3.003, published on 6 March 2018. Nothing has shipped since, so treat Hack as finished software rather than a project still moving.

Two licences, one font

The repository's licence file splits the work in three. Source Foundry's changes are MIT. The DejaVu changes were placed in the public domain. The Bitstream Vera outlines underneath remain under the Bitstream Vera License, with "Bitstream" and "Vera" as reserved font names. In practice both licences allow commercial, desktop, web and app-embedding use. The thing to remember is the naming rule. If you modify the fonts and redistribute them, don't call the result "Vera", and keep both copyright notices. The README describes the binaries as permitting "unlimited print, desktop, web, and software embedding use".

What Source Foundry changed

The README sums up the brief: large x-height, wide apertures and low contrast, with a "sweet spot" of 8 to 14 points. In the v3.003 Regular, every glyph advances 1,233 units on a 2,048-unit em, about 0.60 em per column. The x-height is 1,120 units and the cap height 1,493. Those are generous figures, which is why Hack looks larger than Menlo or Consolas at the same nominal size.

The disambiguation work is visible in the glyphs that usually collide. The zero carries a vertical oval inside its counter, so it never reads as a capital O. The lowercase l has a tail and the 1 a flag and foot, so il1| sets as four distinct shapes. The vertical bar runs from −483 to 1,565, the full descender-to-ascender height, so it lines up across rows when you draw tables in a terminal.

Technical features

  • Four styles: Regular, Bold, Italic and Bold Italic. Two weights only, and no variable font.
  • 1,573 glyphs in the Regular, mapping 1,548 Unicode code points
  • Scripts: Basic Latin, Latin-1 and Latin Extended-A, plus Greek (73 code points) and Cyrillic (180)
  • Box drawing: all 128 code points of U+2500–U+257F, so TUI borders join cleanly
  • Powerline glyphs built in: seven private-use code points (U+E0A0–E0A2, U+E0B0–E0B3), with no patched build needed for a Powerline or Airline status line
  • No programming ligatures. The GSUB table holds aalt, frac, locl, ordn, sinf, subs and sups, and there is no liga or calt, so -> and != stay two characters.

That last point is a deliberate choice, not a gap you will find a setting for. If you want => drawn as an arrow, Fira Code and JetBrains Mono do that. Hack does not.

Where Hack works

Terminals and editors at 11–14 px are its home ground, where the open apertures and the large lowercase do their job. It suits teams that want one font across macOS, Windows and Linux without per-platform fallbacks. It also suits anyone running a Powerline-style prompt, since the separators are already in the file. And it is a sensible free stand-in for Menlo, which Apple also derived from Bitstream Vera Sans Mono, so the two share their skeleton.

Where it struggles

Two weights is a real limit for documentation sites that want a light code style next to a heavy one, or a 500 weight to match body text. The Greek and Cyrillic coverage is basic, and Vietnamese is incomplete: the precomposed vowels with stacked diacritics are missing. There is no Google Fonts listing, so web use means self-hosting the WOFF2 files from the release or loading them from jsDelivr, which the README thanks for hosting. And because the last release was in 2018, any rendering bug you find is a bug you will be living with.

Is Hack on Google Fonts?

No, Hack is not on Google Fonts. It is available from GitHub ↗

Alternative For (1)

Hack is a free alternative to the following fonts:

#1 Menlo 87%
[apple] · mono

Same Bitstream Vera Sans Mono lineage as Menlo, with Powerline glyphs built in

View all alternatives

Free Twins: one premium font and its best free lookalikes, every Thursday.

Get the free font substitution kit now

Confirm by email and the kit is yours.

We'll email you a link to confirm. Unsubscribe in one click. No spam, no selling your address. Privacy

Compare Hack

See how Hack compares to other fonts side by side.

How to Use Hack

Copy these code snippets to quickly add Hack to your project.

Quick Start

CSS code for Hack

/* Download from: https://github.com/source-foundry/Hack */
@font-face {
  font-family: Hack;
  src: url('/fonts/hack.woff2') format('woff2');
  font-display: swap;
}

Search fonts

Esc Close Open as a page