Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No fonts contain glyphs for those codepoints: \u{1d4d2} #4768

Open
ZouDongj opened this issue Jan 9, 2024 · 5 comments
Open

No fonts contain glyphs for those codepoints: \u{1d4d2} #4768

ZouDongj opened this issue Jan 9, 2024 · 5 comments
Labels
bug Something isn't working Windows Issue applies to Microsoft Windows

Comments

@ZouDongj
Copy link

ZouDongj commented Jan 9, 2024

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20240108-182230-b6faedf3

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

The 𝓒 is broken in wezterm
image

but it does work correctly in Windows Terminal
image

❯ wezterm ls-fonts
Primary font:
wezterm.font_with_fallback({
  -- <imported to RAM>, Gdi
  {family="JetBrainsMonoNL NF", weight="Medium"},

  -- C:\USERS\Z\APPDATA\LOCAL\MICROSOFT\WINDOWS\FONTS\MSYH_0.TTC, DirectWrite
  -- AKA: "微软雅黑"
  "Microsoft YaHei",

  -- C:\USERS\Z\APPDATA\LOCAL\MICROSOFT\WINDOWS\FONTS\MATERIALICONSROUND-REGULAR.OTF, DirectWrite
  "Material Icons Round",

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})

To Reproduce

No response

Configuration

no config

Expected Behavior

No response

Logs

No response

Anything else?

No response

@ZouDongj ZouDongj added the bug Something isn't working label Jan 9, 2024
@crides
Copy link
Contributor

crides commented Jan 23, 2024

Works for me just fine:

maim-2024 01 22 22 28 29

I guess the hard part would be to find out what font Windows Terminal used to render that

@wez
Copy link
Owner

wez commented Feb 3, 2024

This is a bit of a weird outcome because wezterm asks DirectWrite which font it should use in this fallback scenario.
For this to error out means that DirectWrite didn't tell wezterm about any suitable fonts.
I would have expected it to return the same font used in windows terminal.

@wez wez added the Windows Issue applies to Microsoft Windows label Feb 3, 2024
@ZouDongj
Copy link
Author

ZouDongj commented Feb 4, 2024

This is a bit of a weird outcome because wezterm asks DirectWrite which font it should use in this fallback scenario. For this to error out means that DirectWrite didn't tell wezterm about any suitable fonts. I would have expected it to return the same font used in windows terminal.

This is really weird, this problem occurs when I use the symbols_outline plugin in nvim to view the symbols of a python file, but when I use the same plugin to view the symbols of another larger C file which contain more symbols, the font becomes normal again as the cursor scrolls in the symbols table, and it also shows up normally in other windows in the wezterm that opened this time, but when I close and reopen the wezterm, this font become broken again.

@starifly
Copy link

starifly commented Mar 4, 2024

I also encountered this problem and solved it using the following method
Add a math font to the font_with_fallback

local font = wezterm.font_with_fallback({
  { family = "Hack Nerd Font", style = "Normal", scale = 1 },
  { family = "Cambria Math", scale = 1.0 },
})

@mau-mauricelim
Copy link

I'm also having a similar issue on Windows

Image

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Issue applies to Microsoft Windows
Projects
None yet
Development

No branches or pull requests

5 participants