wez / wezterm

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

Some characters, such as "﷽" doesn't display properly (its super small). #5056

Open ProfessorMOB opened 8 months ago

ProfessorMOB commented 8 months ago

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

macOS

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

I don't use any window managers.

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

I was trying out a glyph, and for some reason, this one, "﷽", isn't working as one would expect. I thought it wasn't being rendered correctly, but then I took a closer look and it was just super duper small. I don't understand why exactly, I've tried many things, such as increasing the cell width and changing the font scaling for my fallback font that I chose (Damascus, originally it was Geeza because I tried changing the font family to see if that would help, it didn't). In Iterm2, it is in fact displaying correctly. I can show two photos.

image image

Thanks!

To Reproduce

Enter ﷽ into the prompt. It's wouldn't display correctly.

Configuration

local wezterm = require("wezterm")
local config = wezterm.config_builder()

config.custom_block_glyphs = true
-- config.allow_square_glyphs_to_overflow_width = "Always"
config.color_scheme = "tokyonight"
-- config.font = wezterm.font("robotomono nerd font propo", {weight="medium", stretch="normal", style="normal"})
config.font = wezterm.font_with_fallback({"robotomono nerd font propo", {family = "Damascus", scale = 1.5}})
config.unicode_version = 13

-- config.window_background_opacity = 0.45
-- config.macos_window_background_blur = 6
config.keys = {
        {
                key = 'n',
                mods = "SHIFT|SUPER",
                action = wezterm.action.ToggleFullScreen,
        },
}

-- config.native_macos_fullscreen_mode = true

return config

Expected Behavior

I don't know for sure if what the expected behavior is, but I think it should've looked like how Iterm2 displayed it.

image

Logs

No response

Anything else?

No response

ProfessorMOB commented 8 months ago

I can also add what ls-fonts --text outputs LeftToRight 0 ﷽ \u{fdfd} x_adv=8.75 cells=1 glyph=ufdfd.bismillahArRahmanArRaheem,907 wezterm.font("Damascus", {weight="Regular", stretch="Normal", style="Normal"}) /System/Library/Fonts/Supplemental/Damascus.ttc, CoreText

image