-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 rendering looks ugly on Linux #35675
Comments
@Tyriar There might be a font that is missing? (This is Linux.) |
@chrmarti as for editor, I set exists fonts for editor (Droid Sans Mono Slashed, DejaVu Sans Mono and Droid Sans) |
@cryptomaniac512 does it look right when you remove your custom font setting? |
@Tyriar, no. |
@cryptomaniac512 is this a recent regression or are you using VS Code for the first time? |
@bpasero, I used the editor about 2 months ago and everything was fine. |
But font has always been small in spite of GTK settings :( |
@cryptomaniac512 any difference with our previous release (1.16) to see if this is a regression in 1.17 alone? |
@cryptomaniac512 I should have posted the link for 1.15 because in 1.16 we updated our UI framework (Electron) and that might have an impact too. How does it look in VSCode 1.15? |
Maybe try with 1.15.0 and 1.14? |
This problem reproduced with 1.14.2. And I'm sure that everything was fine a couple of months ago |
Probably problem with Freetype. I got the same problem when I upgrade to Freetype 2.8.1. Everything work fine with an older version of Freetype. Someone on Phoronix forum said something about bugs with older version of Google Skia. |
I have the same problem here, please advise if you find a solution / workaround. |
I can confirm that this is a FreeType related problem. Downgrading the |
Yes, I`m amazed, I've also downgraded to 2.8.0 on my gentoo desktop and the issue is gone. |
This seems to be Skia bug 6663: |
@paladdins maybe change it to: sudo dpkg -i libfreetype6_2.8-0.2_amd64.deb
sudo apt-mark hold libfreetype6 otherwise |
Thanks a lot. The solution fixed my problem also. But I wonder how to release the hold after executing it. |
$ sudo apt-mark unhold libfreetype6
$ man apt-mark |
on Ubuntu I think I fixed with
please confirm someone.. (without downgrading libfreetype) |
Could be. It contains M$ proprietary ttf fonts. Might be that those are chosen then and cause less issues? |
@peterducai I tried your package on a new install and it did not fix the issue. Downgrading freetype worked instantly. |
I can confirm the issue on a fresh install of Ubuntu 18.04 beta with latest vscode. And downgrading libfreetype6 to 2.8-0.2 did fix it for me as well. |
Latest "insiders" build works fine with fresh version of freetype. |
@dmitryvk yeah It has been known that newer electron versions did not have this issue. Again tl;dr
Thanks to @paladdins et al. |
Marking as verified as per updates above |
I am on an Ubuntu 18.04 pre release and had artifacts in rendered fonts as described. Following the last few comments I installed |
I’m on Debian Stretch (stable), just tried code-insider-1.22.0-1522420669, still looks bad, but have not changed libfreetype6… but I also do not have other apps with bad font rendering. I will simply continue using vscode stable with a simple patch:
|
Only this one worked for me https://launchpad.net/~no1wantdthisname/+archive/ubuntu/ppa/+build/13557985 |
I had the same problem on Ubuntu Bionic and it's works fine when I downgrade FreeType to 2.8.0. |
I had a similar issue on Windows after upgrading to the latest VS Code. I fixed it considerably by changing the fontFamily setting:
|
When will vs code support the libfreetyp6 version 2.8.1 - does anybody know? |
Oh, I just installed v1.22.1, font rendering is so beautiful now! The code editor fonts were OK before using custom fonts like Anonymous Pro, but the UI & integrated terminal fonts look way better now. Kudos! (Info: I'm on Fedora 27, using the RPM vscode package, freetype 2.8.8, using "Better font rendering" plugin from Fedy) |
I did not have this issue until I upgraded Ubuntu 17.10 to |
Ok, just received visual code 1.22.1 on my ubuntu via apt which finally solved the issue with libfreetype 2.8.1 |
The March update (1.22) brought back VSCode for me - thanks a lot 😄 |
Why I still having this issue: here is my settings: {
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "An Old Hope",
"files.useExperimentalFileWatcher": true,
"editor.wordWrap": "on",
"editor.fontFamily": "'Operator Mono', 'Ubuntu Mono', 'Fira Mono for Powerline'",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"editor.fontWeight": "100",
"editor.dragAndDrop": false,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"terminal.integrated.fontSize": 14,
"terminal.integrated.confirmOnExit": true,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.fontFamily": "'Ubuntu Mono derivative Powerline', 'Fira Mono for Powerline'",
"emmet.triggerExpansionOnTab": true,
"sync.lastUpload": "",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "2018-03-31T03:42:49.973Z",
"sync.forceDownload": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"html.format.wrapAttributes": "force-aligned",
"debug.inlineValues": true,
"gitlens.codeLens.recentChange.enabled": false,
"gitlens.codeLens.authors.enabled": false,
"prettier.singleQuote": true,
"prettier.printWidth": 100,
"ng-c-ext.shutupMode": true,
"ng42.barrels.useTemplates": {
"header": false,
"footer": false
},
"html-css-class-completion.includeGlobPattern": "**/*.{scss,css,html}",
"rust-client.channel": "stable",
"guides.enabled": false,
"gitlens.keymap": "alternate",
"sync.removeExtensions": true,
"sync.syncExtensions": true,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true
}
} |
@sandangel |
hi, my image is showing how the font look like in linux and windows at the same time and on the same machine using vmware for virtual linux machine. they are very different although I’m using the same font and setup on both. the font look very urgly on linux but very beautiful in windows |
All fonts look ugly, you can see it on screenshot:
Console output (when runs with verbose option):
Also, vscode font size outside editor (tabs, menus, etc) too small, - this is not from my gtk settings.
For example, this is a screenshot of working emacs - all fonts are looks well.
I'm working on Void Linux, VSCode ran from downloaded archive.
Also, I use Chromium and have no any troubles.
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: