Automata Mono

My Thanksgiving side project this year is Automata Mono, a fork of Roboto Mono with redrawn glyphs and Fira Code programming ligatures.

Automata Mono character set and ligatures
Automata Mono character set and ligatures

On macOS, install it with Homebrew:

brew install --cask nanxstats/tap/font-automata-mono

Or download fonts/AutomataMono-*.ttf manually from github.com/nanxstats/automata-mono.

Why Roboto Mono?

Roboto Mono is the most popular monospaced font on Google Fonts, so it is worth making it feel right to me. I tried it many times in my editor and terminal before, and it never worked out: I’m too picky about small glyph shapes. I’m serious about my code, so I’m making the perfect monospaced font to render it.

Automata Mono modifies Roboto Mono at the glyph level for a more decisively neo-grotesque look. It draws design inspirations from JetBrains Mono, IBM Plex Mono, Geist Mono, DM Mono, Google Sans Code, and Source Code Pro. The specimen image below highlights some of it, including a dotted 0, footed 1, straight tail a and y, slab r, flat hooks, and larger punctuation dots.

Automata Mono styles, ligatures, and redrawn glyphs
Automata Mono styles, ligatures, and redrawn glyphs

See all current glyph customization details on the documentation site.

Live preview

Here is Automata Mono rendering an R function with ligatures enabled:

#' Compare package versions
#'
#' Compares two package versions using a specified operator.
#'
#' @param version The version to check.
#' @param operator The comparison operator.
#' @param target The target version to compare against.
#'
#' @return Logical result of the comparison.
#'
#' @noRd
compare_version <- function(
    version,
    operator = c("==", "<", "<=", ">", ">="),
    target) {
  operator <- match.arg(operator)
  result <- utils::compareVersion(as.character(version), target)

  switch(operator,
    "==" = result == 0,
    "<"  = result <  0,
    "<=" = result <= 0,
    ">"  = result >  0,
    ">=" = result >= 0,
    stop("Invalid operator: ", operator)
  )
}

Patching fonts with coding agents

Patching TTF fonts with AI coding agents is probably not the most economical use of tokens… but it works surprisingly well! Customizing a font used to be like this: buy proprietary software, track down source files, reproduce the exact build environment, and tweak curves by hand. Now it becomes: describe what I want, then an agent writes Python to patch the TTF with FontForge and fontTools.

This whole process turns out to be a great fit for coding agents: glyph geometry is tedious to figure out by hand, yet it is just math and code; the goal is well-defined, and the outcome is easy to verify programmatically.

In our case, each customization follows the same loop:

  1. Measure outlines in Roboto Mono and reference fonts, most importantly, finding all the impacted composite glyphs.
  2. Find a metric-based rule that works across every weight and italic.
  3. Write Python to patch the font and rebuild.
  4. Run automated checks and visually inspect rendered proofs.

That’s it. The goal is simple: every target glyph changes cleanly across all styles, and everything else stays untouched.