Specify fonts
You can specify the font family and font size used to draw terminal text.
Specifying a font family
Section titled “Specifying a font family”Pass a CSS font-family value to the --font option.
# Specify a font different from the normal terminal fontconsole2svg capture --font "Courier New, monospace" -h 10 -- console2svgDefault font settings
Section titled “Default font settings”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;Specifying font size
Section titled “Specifying font size”Use the --fontsize option to change the font size in pixels (default: 14).
console2svg capture --fontsize 16 -- cargo test