wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.9k stars 801 forks source link

Issue with rendering some icons in fonts #3712

Closed vamsikrishnav closed 1 year ago

vamsikrishnav commented 1 year ago

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

20230510-062945-6d8e266

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

Some of the icons dont render correctly and show a strange character. I have attached the screen shots. The same font renders as expected in kitty.

To Reproduce

No response

Configuration

local wezterm = require 'wezterm'
local mux = wezterm.mux
local act = wezterm.action

wezterm.on('gui-startup', function()
  local tab, pane, window = mux.spawn_window({})
  local _, second_pane, _ = window:spawn_tab {}
  local _, third_pane, _ = window:spawn_tab {}
  window:gui_window():maximize()
  --pane:split { direction = 'Left', size = 0.90 }
  --pane:split { direction = 'Bottom', size = 0.5 }
end)

return {
  --color_scheme = "Catppuccin Macchiato",
  --color_scheme = "Catppuccin Frappe",
  --color_scheme = "Builtin Dark",
  --color_scheme = 'Palenight (Gogh)',
  color_scheme = 'tokyonight_storm',
  font = wezterm.font ('JetBrains Mono', { weight = 'Regular' } ),
  --font = wezterm.font ('MesloLGL Nerd Font', { weight = 'Regular' } ),
  use_fancy_tab_bar = false,
  --font = wezterm.font 'SauceCodePro NF',
  --font = wezterm.font 'Liga SFMono Nerd Font',
  font_size = 12,
  line_height = 0.8,
  cell_width = 0.9,
  enable_tab_bar = true,
  tab_bar_at_bottom = true,
  show_tabs_in_tab_bar = true,
  window_decorations = "RESIZE",
  scrollback_lines = 100000,
  enable_scroll_bar = true,
  adjust_window_size_when_changing_font_size = false,
  hide_tab_bar_if_only_one_tab = true,
  keys = {
    { key = 'Enter', mods = 'CMD', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
    { key = 'Z', mods = 'CTRL', action = wezterm.action.TogglePaneZoomState, },
    { key = 'F9', mods = 'ALT', action = wezterm.action.ShowTabNavigator },
  }
}

Expected Behavior

the correct icon should be rendered

Logs

No response

Anything else?

No response

Screenshot 2023-05-13 at 5 33 20 PM

wez commented 1 year ago

There's no information here for me to act on. The logs should tell you which codepoint(s) could not be resolved.

vamsikrishnav commented 1 year ago

can you please tell me how i can check these logs

wez commented 1 year ago

Look at the instructions for the Logs section of https://github.com/wez/wezterm/issues/new?assignees=&labels=bug&projects=&template=bug.yml

vamsikrishnav commented 1 year ago
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:40.396  ERROR  termwiz::escape::parser > impossible C0/C1 control code '\u{80}' 0x80 was dropped
18:19:44.553  WARN   tiny_skia::painter      > empty paths and horizontal/vertical lines cannot be filled
18:19:44.620  WARN   tiny_skia::painter      > empty paths and horizontal/vertical lines cannot be filled
20:31:12.200  WARN   tiny_skia::painter      > empty paths and horizontal/vertical lines cannot be filled
vamsikrishnav commented 1 year ago

I have also highlighted the icons not rendering in the image using red boxes

wez commented 1 year ago

Please run through:

https://wezfurlong.org/wezterm/faq.html#some-glyphs-look-messed-up-why-is-that

and make sure that you are using a UTF-8 locale.

vamsikrishnav commented 1 year ago

have the same issue after setting the locale to utf-8

vamsikrishnav commented 1 year ago

for some reason i had to reinstall the font and it started working, which is super weird..closing this issue.

github-actions[bot] commented 1 year ago

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.