back to home

source-foundry / Hack

A typeface designed for source code

17,171 stars
655 forks
146 issues
ShellPythonCSS

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing source-foundry/Hack in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/source-foundry/Hack)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Hack Don't like the development noise from the repository but want to keep up with changes? Check out our gitter Hack channel. Have a quick question that doesn't require an issue report? Drop by our gitter Help channel and ask away. A typeface designed for source code Hack is designed to be a workhorse typeface for source code. It has deep roots in the free, open source typeface community and expands upon the contributions of the Bitstream Vera & DejaVu projects. The large x-height + wide aperture + low contrast design make it legible at commonly used source code text sizes with a sweet spot that runs in the 8 - 14 range. The full set of changes to the upstream source are available in the changelog. The project is in active development, and we welcome your input and contributions. You may view our design objectives and instructions on how to contribute in CONTRIBUTING.md. Frequently asked questions are answered in our FAQ. Contents • Features • Quick installation • Package manager installation • Web font usage • Additional tools for font customization • Resources • Contributing • Build tools • Acknowledgments • License Specimen Overview of features • **Typeface Name**: Hack • **Category**: Monospaced • **Character set support**: ASCII, Latin-1, Latin Extended A, Greek, Cyrillic • **Powerline Support**: Yes, included by default • **Included Styles**: Regular, Bold, Italic, Bold Italic Quick installation **NOTE ON FONT UPDATES** *If you are updating your version of Hack, be sure to remove the previously installed version and clear your font cache first to avoid conflicts that can lead to platform-specific rendering errors. Many platforms/distros offer package managers that automate this process. We release a Windows installer to automate the install/update process on the Windows platform. See below for additional details.* Linux • Download the [latest version of Hack][ttf_latest]. • Extract the files from the archive ( ). • Copy the font files to either your system font folder (often ) or user font folder (often or ). • Copy the font configuration file in to either the system font configuration folder (often ) or the font user folder (often ) • Clear and regenerate your font cache and indexes with the following command: You can confirm that the fonts are installed with the following command: Some Linux users may find that font rendering is improved on their distro with these instructions. macOS • Download the [latest version of Hack][ttf_latest]. • Extract the files from the archive ( ) and click to open them. • Follow the instructions from your operating system. • Enjoy! Windows The Hack Windows Installer simplifies installation on the Windows platform. The tool guides you through the installation process and addresses some common rendering issues that occur with font installs/updates on the Windows platform. This tool is the recommended installation approach for Windows users. Chrome/ChromeOS To use with Secure Shell, edit the following fields in Options: • font-family: • user-css: Package managers We highly recommend the convenience of a community developed package manager or other auto-updating utility if this is available on your platform. While the package manager releases may be a bit delayed relative to the repository releases, the packages distributed through these package managers were designed to tune and automate font installs and updates on your system. We are aware of Hack support in the following package managers (with associated package names): • **Arch Linux**: • **Chocolatey (Windows)**: • **Debian**: • **Fedora / CentOS**: • **Gentoo Linux**: • **Homebrew Cask (OS X)**: • **Open BSD**: • **OpenSUSE**: • **Ubuntu**: • **Visual Studio Package Manager**: For installation issues with Hack packages, please contact the package maintainer directly. Web font usage Hack is available in the woff and woff2 web font formats. **Bold** and *italic* styles are included by default and work out-of-the-box via the and tags. Hack is available through the jsDelivr and cdnjs CDN services: The following snippets provide examples of Hack web font use through the jsDelivr CDN. Adjust the URL paths to those provided by cdnjs (click the link above to find the appropriate URL) to switch to the cdnjs CDN. • Add Hack to HTML Include one of the following in the <head> section of your HTML file: **Subset web fonts** **Full character set web fonts** • Add Hack to CSS See the WEBFONT_USAGE.md documentation for additional details, including instructions on how to download, host, and serve the web fonts on your web server. Additional tools for Hack font customization Customize your build with alternate glyph styles The alt-hack library includes a (growing) collection of alternate glyph styles that can be used to customize your Hack fonts. Don't like the default zero style? Swap out the UFO design source with a slashed zero or dotted zero and build new fonts that work better for you. We welcome contributions of new alternate glyph styles in the alt-hack repository. Design something new that works well with rest of the typeface and submit a pull request to the alt-hack repository so that others can use it in their custom builds. Detailed build instructions are available on the alt-hack repository README.md. Font renaming instructions to support side-by-side installs with upstream Hack are available below. Line spacing adjustments font-line is a tool that modifies the default line spacing used in the Hack design (20% UPM). The following gist installs font-line and modifies line spacing for all desktop font files contained in the same directory: • linespace.sh (download .zip) Install modified and unmodified versions of Hack on the same system If you modify the upstream Hack source or the released font binaries and would like to install your modified fonts on the same system with the Hack fonts as released here, you can use the fontname.py Python script to defi…