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 = "100%"
cell_height = "100%"
fallback = ["Symbols Nerd Font Mono", "Noto Color Emoji"]
ligatures = true
OptionTypeDefaultDescription
familystring"JetBrains Mono"Font family name
sizeinteger14Font size in points
cell_widthstring or int"100%"Grid cell width
cell_heightstring or int"100%"Grid cell height
fallbackstring[][]Fallback 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
"N%""110%"Percentage of the font-derived default
N10Fixed pixel value
00Auto — use the font-derived default

The default is "100%" (equivalent to auto). Increasing cell_height adds line spacing. Increasing cell_width adds character spacing.

[font]
cell_width = "100%" # default character spacing
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