Closed bfagundez closed 2 years ago
Please share the output from wezterm ls-fonts --list-system | grep -i Iosevka
and wezterm ls-fonts
Have the same issue. Here's my requested outputs:
I actually have a similar issue but in reverse. With a nightly build downloaded from https://github.com/wez/wezterm/releases/download/nightly/WezTerm-nightly-Ubuntu18.04.AppImage, wezterm finds my fonts fine. When I build it myself with cargo build --release
, it cannot find them. It's been that way for about 2 weeks, right before I did the SGR-Pixels PR.
Relevant section of my config:
font_dirs = { "/home/autumn/.fonts",
"/usr/share/fonts/opentype",
"/usr/share/fonts/truetype" },
font = wezterm.font_with_fallback({
{ family="Terminus (TTF)" },
{ family="Terminus (TTF)" },
{ family="Glass TTY VT220" },
}),
font_size = 12.0,
@wez
Here is the result of wezterm ls-fonts --list-system | grep -i Iosevka
:
wezterm.font("Iosevka", {weight="ExtraLight", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Extralight Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="ExtraLight", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Extralight Nerd Font Complete Windows Compatible.ttf, CoreText
wezterm.font("Iosevka", {weight="ExtraLight", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Extralight Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Light", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Light Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Light", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Light Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Regular", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Regular", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Regular", stretch="Normal", italic=true}) -- /Users/geekymartian/Library/Fonts/Iosevka Italic Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Regular", stretch="Normal", italic=true}) -- /Users/geekymartian/Library/Fonts/Iosevka Italic Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Regular", stretch="Normal", italic=true}) -- /Users/geekymartian/Library/Fonts/Iosevka Oblique Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Regular", stretch="Normal", italic=true}) -- /Users/geekymartian/Library/Fonts/Iosevka Oblique Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Medium", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Medium Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Medium", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Medium Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Bold", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Bold Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Bold", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Bold Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Bold", stretch="Normal", italic=true}) -- /Users/geekymartian/Library/Fonts/Iosevka Bold Italic Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Bold", stretch="Normal", italic=true}) -- /Users/geekymartian/Library/Fonts/Iosevka Bold Italic Nerd Font Complete Windows Compatible.ttf, CoreText
wezterm.font("Iosevka", {weight="Bold", stretch="Normal", italic=true}) -- /Users/geekymartian/Library/Fonts/Iosevka Bold Italic Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka", {weight="Black", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Heavy Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka", {weight="Black", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Heavy Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka Term", {weight="Thin", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Term Thin Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka Term", {weight="Thin", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Term Thin Nerd Font Complete.ttf, CoreText
wezterm.font("Iosevka Term", {weight="Regular", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Term Nerd Font Complete Mono.ttf, CoreText
wezterm.font("Iosevka Term", {weight="Regular", stretch="Normal", italic=false}) -- /Users/geekymartian/Library/Fonts/Iosevka Term Nerd Font Complete.ttf, CoreText
and here of wezterm ls-fonts
:
Primary font:
wezterm.font_with_fallback({
-- <built-in>, BuiltIn
"JetBrains Mono",
-- <built-in>, BuiltIn
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Last Resort High-Efficiency",
})
When Intensity=Half Italic=true:
wezterm.font_with_fallback({
-- <built-in>, BuiltIn
"JetBrains Mono",
-- <built-in>, BuiltIn
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Last Resort High-Efficiency",
})
When Intensity=Half Italic=false:
wezterm.font_with_fallback({
-- <built-in>, BuiltIn
"JetBrains Mono",
-- <built-in>, BuiltIn
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Last Resort High-Efficiency",
})
When Intensity=Bold Italic=false:
wezterm.font_with_fallback({
-- <built-in>, BuiltIn
"JetBrains Mono",
-- <built-in>, BuiltIn
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Last Resort High-Efficiency",
})
When Intensity=Bold Italic=true:
wezterm.font_with_fallback({
-- <built-in>, BuiltIn
"JetBrains Mono",
-- <built-in>, BuiltIn
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Last Resort High-Efficiency",
})
When Intensity=Normal Italic=true:
wezterm.font_with_fallback({
-- <built-in>, BuiltIn
"JetBrains Mono",
-- <built-in>, BuiltIn
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Last Resort High-Efficiency",
})
Title font:
wezterm.font_with_fallback({
-- <built-in>, BuiltIn
{family="Roboto", weight="Bold"},
-- <built-in>, BuiltIn
"JetBrains Mono",
-- <built-in>, BuiltIn
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Last Resort High-Efficiency",
})
Those font files are broken; there's something wrong with the name information in the font.
The family name is set to Iosevka
but it is only resolvable by name from Core Text when using the name that shows in the Font Book application, which is "Iosevka Nerd Font" (or Iosevka Nerd Font Mono
if you installed the monospace version).
font = wezterm.font("Iosevka Nerd Font Mono")
See also: https://github.com/ryanoasis/nerd-fonts/issues/586
In general, I do not recommend using those nerd font patched fonts with wezterm as they have a variety of weird issues like this.
Instead, I would suggest taking advantage of font fallback; uninstall the patched fonts and install the originals for Iosevka, then download NerdFontsSymbolsOnly.zip
from the github releases page and install that one; it should have just the symbols you want.
font = wezterm.font_with_fallback({
"Iosevka",
"Symbols Nerd Font Mono"
}),
I actually have a similar issue but in reverse.
@klamonte: Could you open a separate issue and include the wezterm ls-fonts
info?
You're on Linux and this issue is a macOS + wonky font file issue that I think is unrelated to what you're seeing, although the symptoms sound superficially similar.
In general, I do not recommend using those nerd font patched fonts with wezterm as they have a variety of weird issues like this. Instead, I would suggest taking advantage of font fallback; uninstall the patched fonts and install the originals for Iosevka, then download NerdFontsSymbolsOnly.zip from the github releases page and install that one; it should have just the symbols you want.
Wow, this is genius, thank you!
[Edit]Added https://github.com/wez/wezterm/issues/1521 :-) [/]
You are right, nerd patched fonts were the problem.
Using:
font = wezterm.font_with_fallback({
"Iosevka",
"Symbols Nerd Font Mono"
}),
Solved the issue.
Thanks!
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.
What Operating System(s) are you seeing this problem on?
macOS
WezTerm version
happens at the latest: wezterm 20220101-133340-7edc5b5a and nightly: wezterm 20220106-174729-72595d99
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
I had a
.wezterm.lua
configuration file with the font "Iosevka Nerd Font Mono". It was working fine until the latest update. After pulling the latest version I get:I followed the commands found at #1137 and #1085 and ls-fonts grep displays Iosevka. Also, note that this is a nerd patched font, I saw an issue fixed where some check was removed, maybe it's a regression?
To Reproduce
Configuration
Expected Behavior
Load the font like it used to do before the update.
Logs
Anything else?
I also tried other fonts (like IBM Plex) and those work. Seems to be related to nerd patched fonts maybe?