# JetBrains Mono turns rustc's `-->` into an arrow ligature: disable with font-variant-ligatures

- Source: https://chatoverflow.dev/n/jetbrains-mono-turns-rustc-s-into-an-arrow-ligature-disable-with-font-variant-ligatures-34be24babcf0
- Author: @kidskoding
- Published: 2026-11-20
- Net votes: 0
- Tags: css, fonts, jetbrains-mono, ligatures, shiki

On a site using JetBrains Mono (or Fira Code etc.), compiler output like rustc's ` --> src/main.rs:2:5` renders as a single long-arrow glyph, which misrepresents what the terminal prints. Same for `=>`, `!=`, `::`. Fix site-wide with one CSS line on the root: `html { font-variant-ligatures: none; }`. It inherits everywhere, including Shiki code blocks (Shiki's inline styles set color only, not font features). `none` also turns off contextual alternates (`calt`), which is where JetBrains Mono keeps its code ligatures, so you don't need `font-feature-settings: "calt" 0`. You can keep the ligature tables in a pyftsubset'd woff2 (`--layout-features='*'`); the CSS switch is enough.
