wez / wezterm

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

Text and font display differently compared to Alacritty #2927

Closed farzadmf closed 1 year ago

farzadmf 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

wezterm 20221119-145034-49b9839f

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

I honestly love your terminal, and the fact that the configuration is in Lua.

However, one issue I have is with the font display that I haven't managed to resolve.

Here's what I see in WezTerm: image

And what I see in Alacritty: image

Maybe it's some anti-aliasing or something done by Alacritty (I'm not a font expert at all!), but both terminals are using the same font on my system (Fira Code) and the same weight (Regular)

To Reproduce

No response

Configuration

I added this section with the hope of making WezTerm's font a bit "brighter" similar to Alacritty

foreground_text_hsb = {
  hue = 1.0,
  saturation = 1.0,
  brightness = 1.15,
},
font = wezterm.font_with_fallback({
  {
    family = "Fira Code",
    weight = "Regular",
  }
})

Expected Behavior

It would be great if I'd see the same thing in both terminals. I've been going back and forth, and this font issue with WezTerm is the only blocker for me

Logs

No response

Anything else?

No response

wez commented 1 year ago

Try using the webgpu front end:

That happens to render a bit brighter/bolder than opengl. That may technically be a bug, but if it is, it's not something that is obviously within the control of wezterm(!)

farzadmf commented 1 year ago

Hey @wez , thank you for the reply.

That may technically be a bug

Not exactly sure which part you mean? The fonts being rendered "thinner" compared to Alacritty? Or the fonts looking brighter with WebGPU?

So, I tried adding front_end = "WebGpu" to my config and I thought, like other settings, saving my config would reflect the changes, and I was almost giving up, but then I tried restarting WezTerm, and I think the font looks MUCH nicer

However, it seems that I lost my window opacity 🤔

farzadmf commented 1 year ago

Hey @wez , didn't hear from you. Was wondering if there's a setting that I need to change to have the opacity?

wez commented 1 year ago

Looks like a webgpu + macos specific issue; please file a separate issue for that. I'm not surprised by it: I had to play some tricks to get MetalANGLE + opacity working and those may need to be translated to webgpu as well.

farzadmf commented 1 year ago

OK, sure, gonna create a new one a bit. For now, this is the only show stopper for me to go back to WezTerm

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.