wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Wrong font being selected

Open amusingimpala75 opened this issue 10 months ago • 0 comments

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

macOS

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

No response

WezTerm version

wezterm 20240203-110809-5046fc22

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 wrong font is selected for a given symbol, in this case ' ⎇ '. Alacritty, set to use the JetBrains Mono font, yields: Screenshot 2024-04-26 at 12 50 37 AM whereas Wezterm, set to use that font setup renders it as Screenshot 2024-04-26 at 12 50 53 AM. Asking wezterm to list the font applied for the symbol says that it is using the Apple Symbols font.

To Reproduce

No response

Configuration

font related parts of my wezterm config are below:

config.font = wezterm.font_with_fallback {
  { family = "JetBrainsMono Nerd Font", weight = "Medium" },
  -- ⎇ symbol is broken, but not on alacritty
  { family = "JetBrains Mono", weight = "Regular" },
  "DroidSansMono Nerd Font",
}

config.font_size = 16.0
config.bold_brightens_ansi_colors = true
config.dpi = 144.0
config.font_rules = {
  {
    intensity = "Bold",
    font = wezterm.font("JetBrainsMono Nerd Font", {weight = "ExtraBold"})
  },
  {
    italic = true,
    intensity = "Bold",
    font = wezterm.font("JetBrainsMono Nerd Font", {italic = true, weight = "ExtraBold"})
  },
  {
    italic = true,
    font = wezterm.font("JetBrainsMono Nerd Font", {italic = true, weight = "Medium"})
  },
}
config.harfbuzz_features = {"calt=1", "clig=1", "liga=1"}

Expected Behavior

Font behavior should be the same, and the JetBrains mono font should be used over the Apple symbols font.

Logs

No response

Anything else?

No response

amusingimpala75 avatar Apr 26 '24 04:04 amusingimpala75