You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Foot terminalfont doesn't parse font sizes using Font Name-size syntax #2624
I have checked the FAQ but the issue is not covered
Description
Foot takes fonts as raw comma-separated strings to pass to fontconfig. Its current ad-hoc parser only detects the Font Name:size=n syntax, but fontconfig also lets you write size as Font Name-n, which works fine in foot confuses fastfetch. For instance, with foot.ini font=Berkeley Mono-12, fastfetch shows Terminal Font: Berkeley Mono-12 (8pt).
Since fastfetch now has a ffFontInitXft function, I propose foot's parser be moved to that, as well as st's, which is probably the more "correct" option (catching stuff like pixelsize) and should deduplicate some code. One possible caveat I should mention though is that they handle commas differently. Foot splits the string on commas to specify fallbacks before handing them to fontconfig AFAIK, whereas st just hands over the whole string and lets fontconfig split just the family, so for instance A,B:size=12 would mean completely different thing on foot and st.
Activity
TerminalFont (Linux): uses ffFontInitXft to parse foot terminal font