Closed bew closed 3 years ago
I would really like this. Since a few builds ago wezterm has started to reject my configured fonts. Having a way to list available fonts would help a lot!
Unable to load a font matching FontAttributes { family: "Operator Mono SSm Lig
Medium", bold: false, italic: false, is_fallback: false }. Fallback(s)
are being used instead, and the terminal may not
render as intended
Unable to load a font matching FontAttributes { family: "Operator Mono SSm Lig
Medium", bold: false, italic: false, is_fallback: false }. Fallback(s)
are being used instead, and the terminal may not
render as intended
Unable to load a font matching FontAttributes { family: "Operator Mono SSm Lig
Medium", bold: false, italic: false, is_fallback: false }. Fallback(s)
are being used instead, and the terminal may not
render as intended
Unable to load a font matching FontAttributes { family: "Operator Mono SSm Lig
Medium", bold: false, italic: false, is_fallback: false }. Fallback(s)
are being used instead, and the terminal may not
render as intended
Unable to load a font matching FontAttributes { family: "Operator Mono SSm Lig
Medium", bold: true, italic: false, is_fallback: false }. Fallback(s)
are being used instead, and the terminal may not
render as intended
@felixjung https://github.com/wez/wezterm/commit/65ac2269dd18b561be6fc7827738ce86dff7b2b6 and https://github.com/wez/wezterm/issues/340 seem relevant to that specific problem!
Ha, yes thanks. I was just browsing the issues to see if something new had popped up. 😅
Overall, yes, I think something like this would help. There are some tricky cases where it may not be possible to do exactly what you want: the font locators on a system don't necessarily know what the full set of fonts are, but can try to find one by name. I do think that it is reasonable to improve diagnostics around what was found and resolved, and for the font dirs that wezterm searches, that can include the names of those fonts.
Hello @wez, while ls-fonts
is great, it does not help that much when trying to know which font are available.
I understand that you can't know the full list, but even a partial list can be helpful I think. (with a note at the end mentioning it's not the full list)
In the case where the font locator is configured with config dirs only, I think it's safe to say you can find all the fonts, no?
Or is it really not something you want to do?
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is your feature request related to a problem? Please describe. When I'm configuring and tweaking my font settings, trying new fonts, it's difficult to know which font is available with the current config, or which font is really selected.
Describe the solution you'd like A cli command like
wezterm list-fonts
that would output something like:Or more structured:
Additionally (if it makes sense?) there could be a flag to show the selected fonts with the current config only, like:
Describe alternatives you've considered A workaround to list the available fonts is to enable debug logs and read the warnings, but the output is not "clean", there are some
Using font ...
lines right in the middle, I'm never sure if it's from a different thread or if it shows a separation, .. And in the logs, the font names are repeated multiple times (probably due to multiple places where a font can't be found).For example: