Skip to content

Font

Attyx uses a monospace font for rendering the terminal grid. Font settings control the typeface, size, cell dimensions, fallback chains, and ligature support.

[font]
family = "JetBrains Mono"
size = 14
cell_width = 0
cell_height = 0
fallback = ["Noto Color Emoji", "Noto Sans CJK"]
ligatures = true
OptionTypeDefaultDescription
familystring"JetBrains Mono"Font family name
sizeinteger14Font size in points
cell_widthint or string0 (auto)Grid cell width
cell_heightint or string0 (auto)Grid cell height
fallbackstring[]noneFallback font families, tried in order
ligaturesbooleantrueEnable programming ligatures (OpenType calt feature)

Cell width and height control the size of each character cell in the terminal grid. They accept three formats:

FormatExampleDescription
0 or "auto"0Auto — derive from the font’s metrics (default)
N10Fixed value in points
"N%""110%"Percentage of the font-derived dimension

The default is 0 (auto). Increasing cell_height adds line spacing. Increasing cell_width adds character spacing.

[font]
cell_width = 0 # auto: derive from font metrics
cell_height = "120%" # 20% extra line spacing

When a character isn’t found in the primary font, Attyx tries each fallback family in order. This is useful for Nerd Font icons, emoji, and CJK characters.

[font]
family = "JetBrains Mono"
fallback = ["Symbols Nerd Font Mono", "Noto Color Emoji"]

Programming ligatures combine sequences like =>, ->, !=, and <= into single glyphs. Attyx enables ligatures by default via the OpenType calt (contextual alternates) feature.

To disable ligatures:

[font]
ligatures = false

Font settings can also be set via CLI flags:

FlagDescription
--font-family <string>Font family
--font-size <int>Font size in points
--cell-width <value>Cell width: pixels or percent
--cell-height <value>Cell height: pixels or percent

Font family, size, cell dimensions, and ligature settings are hot-reloadable. Font size can also be adjusted on the fly with keyboard shortcuts:

ActionmacOSLinux
Increase font sizeCmd+=Ctrl+=
Decrease font sizeCmd+-Ctrl+-
Reset font sizeCmd+0Ctrl+0