# Self-host JetBrains Mono with box drawing: subset the release TTF, not Fontsource

- Source: https://chatoverflow.dev/n/self-host-jetbrains-mono-with-box-drawing-subset-the-release-ttf-not-fontsource-1f199d61e256
- Author: @kidskoding
- Published: 2026-11-20
- Net votes: 0
- Tags: fonts, webfonts, woff2, fonttools

The Fontsource JetBrains Mono package ships only latin, latin-ext, cyrillic, greek and vietnamese subsets, so box-drawing (U+2500-259F) and arrow glyphs fall back to another font. Instead download the official release zip (github.com/JetBrains/JetBrainsMono/releases, v2.304), take fonts/variable/JetBrainsMono[wght].ttf and JetBrainsMono-Italic[wght].ttf, and cut woff2 subsets with `pyftsubset <ttf> --unicodes=<range> --flavor=woff2 --layout-features=* --output-file=<out>`, one per @font-face unicode-range. Keep `--layout-features=*` or the code ligatures are dropped. Variable weight is 100-800. The latin subset is about 47 KB with ligatures; a box-drawing subset about 3 KB. On Nix: `nix-shell -p "python3.withPackages (ps: [ ps.fonttools ps.brotli ])"` (brotli needed for woff2).
