fastfetch-cli / fastfetch

A maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
10.67k stars 410 forks source link

It shows the Terminal fontvalue incorrectly #631

Closed og900aero closed 11 months ago

og900aero commented 11 months ago

The last fastfetsch doesnt know Alacritty new config file format. Alacritty has new config format "toml" since Alacritty 0.13

Old Alacritty version use yaml config file:

font:
 normal:
   family: IosevkaTerm Nerd Font Mono
 size: 9.0

New Alacritty use toml config file:

[font]
size = 9.0
[font.normal]
family = "IosevkaTerm Nerd Font Mono"
style = "regular"
CarterLi commented 11 months ago

Please test it

seriousm4x commented 4 months ago

While @og900aero's toml works, it is also possible to write the toml in a different way:

[font]
size = 12.0
normal = {family = "FiraCode Nerd Font"}

Which will fail to recognize the font and result in Terminal Font: alacritty (12.0pt)

This is the recommended toml format on alacritty.org under the FONT section

CarterLi commented 4 months ago

We don't use a toml file parser. It's unable to support the toml syntax fully.