-
Notifications
You must be signed in to change notification settings - Fork 501
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
Font too thin in light background compared to chrome #2398
Comments
I want to know is it possible to make font looks like chrome:) |
We usually get reports that the fonts are too bold, so in that sense this bug report is strange. But I can repeat this on Linux as well, and the different alias options does not fix it. It's a bit puzzling, since we use Skia for font rendering, the same library as Chrome uses, so it should look the same. So, it's most likely a gamma issue, but I'm not sure what we need to do to fix, maybe switch to srgb rendering. This is most likely related: |
I also found neovide font weight 500(jb mono) is almost identical to kitty font weight 400 in light background, they mention gamma in text-composition document too. And kitty can specify a number to adjust that gamma. |
What's the roles of skia_safe::Font and swash used as paird? Who decide the final looks? |
some information kovidgoyal/kitty#5423 (comment) |
This should allow it to be configured the same: |
Set gamma to 1.5 is nearly the same as chrome and vscode, it is great that I can adjust thickness for what I like! |
The gamma and contrast options in Neovide 0.13.0 allows for all kinds of adjustments. https://neovide.dev/configuration.html#text-gamma-and-contrast |
To Reproduce
Steps to reproduce the behavior:
open a html file in chrome
a.html.zip
set the same (jetbrains mono, font size 30) in neovide, and open the html file in neovide
see the font bold difference
Expected behavior
they should be the same
Screenshots
![截屏2024-03-04 20 47 04](https://private-user-images.githubusercontent.com/97848247/309758225-971e4142-d955-476e-8741-93f3eff83df6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4NTQxODgsIm5iZiI6MTcxODg1Mzg4OCwicGF0aCI6Ii85Nzg0ODI0Ny8zMDk3NTgyMjUtOTcxZTQxNDItZDk1NS00NzZlLTg3NDEtOTNmM2VmZjgzZGY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDAzMjQ0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5YWFkMDM3ZGYwM2I2ZDQ4Yzk4OTcxZjViYjZmMWM3MGYwNTAwZTlmZDFlNWFhNGYyZjNkYjk1OTUwNWYyMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BhkmobiOTiajkZYm9rxOaHoLDdjHJiEgEElfBLmr9Bw)
above is neovide, below is chrome, you can see neovide is thiner
I tested in intellij idea and vscode and found intellij render font silimlar to neovide(thiner) and vscode is similar to chrome(bolder), maybe not an issue just different rendering method
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: