A curated collection of the Hack typeface organized for easy installation and deployment across different platforms and environments.
Hack is a typeface designed specifically for source code. It includes monospaced Regular, Bold, Italic, and Bold Italic variants, and was designed with readability in mind. The typeface is based on Bitstream Vera Sans Mono and includes over 1,500 glyphs, providing excellent Unicode coverage.
- Version: v3.003
- Designer: Christopher Simpkins and contributors
- License: MIT License (SIL Open Font License + Bitstream Vera License)
- Official Repository: source-foundry/Hack
This repository also includes Hack Nerd Font variants that extend the original Hack typeface with additional glyphs and symbols commonly used in terminal applications, IDEs, and development environments.
Nerd Fonts Features:
- π’ 3,600+ additional glyphs including icons from Font Awesome, Devicons, Octicons, and more
- π Perfect for terminals and modern development workflows
- π File type icons for enhanced file explorers and terminal experiences
- β‘ Git status indicators and branch symbols
- π§ Linux/Unix symbols and powerline glyphs
- π» Programming language icons for VS Code, Vim, and other editors
Nerd Font Details:
- Version: v3.4.0 (latest)
- Source: Nerd Fonts Project
- Variant Used: HackNerdFontMono (maintains monospace characteristics)
- License: Same as original Hack font (MIT License compatible)
- Format: TTF files with .otf extension (compatible with most systems)
Quick Install Command for macOS:
cd /Library/Fonts && git clone https://github.com/SamPlaysKeys/hack-fonts.gitQuick Install Command for Linux:
sudo git clone https://github.com/SamPlaysKeys/hack-fonts.git /usr/share/fonts/hack-fonts && sudo fc-cache -f -vOpen web/demo.html in your browser to see a comprehensive demonstration of all font variants and character sets.
A live copy of web/demo.html is hosted at SamPlaysKeys.com/ for easy review.
This repository organizes the Hack font family into the following directories:
hack-fonts/
βββ README.md # This file
βββ LICENSE.md # Font license information
βββ ATTRIBUTION.md # Credits and attribution
βββ otf/ # OpenType Font files (.otf) - Nerd Font variants
βββ ttf/ # TrueType Font files (.ttf) - Original Hack
β βββ Hack-Regular.ttf
β βββ Hack-Bold.ttf
β βββ Hack-Italic.ttf
β βββ Hack-BoldItalic.ttf
βββ otf/ # Nerd Font variants with additional glyphs
β βββ HackNerdFont-Regular.otf
β βββ HackNerdFont-Bold.otf
β βββ HackNerdFont-Italic.otf
β βββ HackNerdFont-BoldItalic.otf
βββ web/ # Web font files and demo
βββ demo.html # Font demonstration page
βββ stylesheet.css # CSS with @font-face declarations
βββ hack-regular.woff
βββ hack-regular.woff2
βββ hack-bold.woff
βββ hack-bold.woff2
βββ hack-italic.woff
βββ hack-italic.woff2
βββ hack-bolditalic.woff
βββ hack-bolditalic.woff2
βββ hack-*-subset.woff # Subset versions for web optimization
βββ hack-*-subset.woff2 # Subset versions for web optimization
System-wide Installation:
# Clone the repository to /Library/Fonts
sudo git clone https://github.com/SamPlaysKeys/hack-fonts.git /Library/Fonts/hack-fonts
# Or install TTF files directly to system fonts
sudo cp hack-fonts/ttf/*.ttf /Library/Fonts/User Installation:
# Clone to user fonts directory
git clone https://github.com/SamPlaysKeys/hack-fonts.git ~/Library/Fonts/hack-fonts
# Or install TTF files to user fonts
cp hack-fonts/ttf/*.ttf ~/Library/Fonts/System-wide Installation:
# Clone to system fonts directory
sudo git clone https://github.com/SamPlaysKeys/hack-fonts.git /usr/share/fonts/hack-fonts
# Update font cache
sudo fc-cache -f -v
# Or install TTF files directly
sudo mkdir -p /usr/share/fonts/truetype/hack
sudo cp hack-fonts/ttf/*.ttf /usr/share/fonts/truetype/hack/
sudo fc-cache -f -vUser Installation:
# Clone to user fonts directory
mkdir -p ~/.local/share/fonts
git clone https://github.com/SamPlaysKeys/hack-fonts.git ~/.local/share/fonts/hack-fonts
# Update user font cache
fc-cache -f -v
# Or install TTF files to user fonts
cp hack-fonts/ttf/*.ttf ~/.local/share/fonts/
fc-cache -f -vInstallation via Font Files:
- Download or clone this repository
- Navigate to the
ttf/directory - Select all
.ttffiles - Right-click and select "Install" or "Install for all users"
Installation via PowerShell:
# Download and install (requires PowerShell 5.0+)
git clone https://github.com/SamPlaysKeys/hack-fonts.git
Copy-Item "hack-fonts\\ttf\\*.ttf" "$env:SystemRoot\\Fonts\\"After installation, you can use Hack in your terminal or code editor:
- Font Name:
Hack - Font Family:
'Hack', monospace - Recommended Size: 12-14pt for code editing
Include the font in your web projects:
<link rel="stylesheet" href="path/to/hack-fonts/web/stylesheet.css">@font-face {
font-family: 'Hack';
src: url('path/to/hack-regular.woff2') format('woff2'),
url('path/to/hack-regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}
/* Add similar declarations for Bold, Italic, and Bold Italic */.code {
font-family: 'Hack', 'Monaco', 'Consolas', monospace;
font-size: 14px;
line-height: 1.5;
}| Variant | Weight | Style | File Name |
|---|---|---|---|
| Regular | 400 | normal | Hack-Regular.ttf |
| Bold | 700 | normal | Hack-Bold.ttf |
| Italic | 400 | italic | Hack-Italic.ttf |
| Bold Italic | 700 | italic | Hack-BoldItalic.ttf |
Includes 3,600+ additional glyphs and symbols
| Variant | Weight | Style | File Name |
|---|---|---|---|
| Regular | 400 | normal | HackNerdFont-Regular.otf |
| Bold | 700 | normal | HackNerdFont-Bold.otf |
| Italic | 400 | italic | HackNerdFont-Italic.otf |
| Bold Italic | 700 | italic | HackNerdFont-BoldItalic.otf |
The Hack typeface is licensed under the MIT License, which includes:
- SIL Open Font License v1.1
- Bitstream Vera License
See LICENSE.md for full license text.
This repository is a curated collection of the Hack typeface created by:
- Christopher Simpkins and contributors
- Based on Bitstream Vera Sans Mono by Bitstream, Inc.
- Extended from DejaVu Sans Mono
Nerd Font variants are provided by:
- Nerd Fonts project by Ryan L McIntyre and contributors
- Repository: ryanoasis/nerd-fonts
- Additional licensing: See NERD_FONTS_LICENSE.md
For complete attribution information, see ATTRIBUTION.md.
This is a font distribution repository. For font improvements or bug reports, please visit the official Hack repository.
To contribute to this distribution:
- Fork this repository
- Make improvements to the organization, documentation, or build process
- Submit a pull request
- Official Hack Repository: https://github.com/source-foundry/Hack
- Hack Website: https://sourcefoundry.org/hack/
- Font Specimen: web/demo.html
- License: LICENSE.md
- v3.003 (2018-03-05): Latest stable release
- Improved glyph coverage
- Bug fixes and optimizations
- Web font optimizations