Skip to content

Specify fonts

You can specify the font family and font size used to draw terminal text.

Pass a CSS font-family value to the --font option.

Terminal
# Specify a font different from the normal terminal font
console2svg capture --font "Courier New, monospace" -h 10 -- console2svg

console2svg

When --font is not specified, the following font settings are used by default.

font-family:
"JetBrains Mono",
"Cascadia Mono",
"Segoe UI Mono",
"Noto Sans Mono",
"SFMono-Regular",
Menlo,
Consolas,
"DejaVu Sans Mono",
"Liberation Mono",
monospace;

Use the --fontsize option to change the font size in pixels (default: 14).

Terminal
console2svg capture --fontsize 16 -- cargo test