-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
Automatically add italics for fonts which don't support them #815
Comments
This commit adds a slant to *scalable* (not bitmap!) fonts whose originating font attributes requested italics but for for which the resolved face is not italic. refs: #815
Give it ~30 minutes to build and try the nightly! |
Damn you are on fire! Thank you so much!! The work you do is much appreciated. |
Just one thing @wez after trying out the nightly for a bit I had now two occasions where wez would completely hang. Nothing I could do to get it to close besides |
If you can get that to reproduce then it would be great to capture a stack trace to see where it is stuck:
Where PID is the process of the stuck wezterm |
Sure here it is. I could kinda reproduce it by having two wezterm windows open, and in one I change the theme and font a few times and then when I close one of them, the other one halts. But not super deterministicly/ |
Thanks; that trace doesn't appear to be a classic hang; it just appears as though everything is idle and waiting for something to happen. Try starting wezterm with tracing turned on: |
Hmm this time when I reproduced a hang there was nothing logged to tmp. I'll try this again a few times. Curiously with only this one open dead window, there are other processes showing up with regards to wezterm. (I am currently using a neovim as an appimage unttil it made its way to Fedora repos):
Here is a short video of the dead window, note how the cursor (coming from the left) disappears when moving over the window. No keys are accepted and the window cannot even be closed when activating GNOME's activities overview. wez_not_responding.mp4 |
I have a log now after I killed these processes, not sure if that helps.
The log: |
Is that log file from the same session as your latest recording? The timestamps in the log seem to end many minutes before the video. Towards the bottom of the file:
it looks like wezterm thought that everything was done; it would typically terminate and close its windows at that point. Do you see that consistently when this issue reproduces for you? |
I'm sorry I am not sure anymore if it was that occasion or another. I just wanted to demonstrate the behaviour, maybe the swallowing up of the cursor could be an indication where things break. Maybe this is more a problem with the window server and would not be a problem on Wayland?
I will try to debug some more and |
At the bottom of #815 is some discussion about an apparent hang. Let's make the self pipe writing a bit more robust and log to see if that might be related.
Ok so I reproduced it again this morning but it took me a bit and I paused in between which explains the time stamps in the log. The time where my tmux time stopped was But the last entry in my log is from 6 am, probably not taking into account my time zone. I did not start at 6 am and I am in UTC +2. Over the course of my morning I tried reproducing the issue, opened wezterms, opened some files in neovim, closed them etc. After that did not reproduce the problem, I left one of the terminals open. When I came back, I opened another window, tested again and could reproduce the issue. However I don't know if this is even reflected in the log at all (keep in mind I I will stop using wezterm now unfortunately since I do everything in my terminal and this is a deal breaker but if you need me to test anything, please let me know! |
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. |
I have absolutely no idea how exactly font rendering works, so if this is a request too crazy, please disregard it.
Is your feature request related to a problem? Please describe.
There some nice fonts which do not have an italics style such as Cascadia (or the nerd font version CaskaydiaCove which I use).
Describe the solution you'd like
It would be nice if Wezterm could automatically add support for italics like e.g. Sublime Text does.
Describe alternatives you've considered
Using fonts which have italics, but Cascadia is quite nice in other aspects. Italics would be quite nice for more expressiveness.
Additional context
Attached I added two screenshots of the same code with the same font (CaskaydiaCove) and font size. The first one is Sublime Text 3 which adds italics and the second is wezterm with neovim.
The text was updated successfully, but these errors were encountered: