-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
Automatic bold font synthesis for Lucida Console #2074
Comments
For fonts like Lucida Console on Windows which do not have a bold variant, we were not synthesizing bold. The reason was that the config-level "make bold" logic works by adding 200 to the weight which takes normal -> demibold, but the bold synthesis logic is enabled only for bold and higher. This commit changes the threshold for synthesis to demibold or higher. refs: #2074
This should be fixed now in It typically takes about an hour before fixes are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer. Please take a few moments to try out the fix and let me know how that works out. If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a If you are eager and can build from source then you may be able to try this out more quickly. |
I confirm it works in nightly wezterm 20220605-063531-e7258e0e with |
thanks, I was having this issue as well and this fixed it, with another font on Windows. |
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. |
What Operating System(s) are you seeing this problem on?
Windows
WezTerm version
wezterm 20220408-101518-b908e2dd
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
Hi Wez! Nice terminal!
With this config
wezterm renders everything in regular Lucida Console, never any bold font.
To Reproduce
See above.
Configuration
See above.
Expected Behavior
Logs
Nothing relevant.
Anything else?
Lucida Console is a preinstalled font in Windows. It does not have a built in bold version. Compare with Courier New:
With
return {font = wezterm.font("Lucida Console")}
, ls-fonts is:wezterm ls-fonts
Notice how it says "Will synthesize italics" and "Will synthesize dim", but never "bold".
I managed to work around the bug in my config with font_rules. With this config, I get the expected result:
wezterm ls-fonts with font_rules
The point is that it should do the right thing by default.
Why didn't I try nightly:
Because I was lazy.
The text was updated successfully, but these errors were encountered: