Font Rendering issue with freetype 2.8.1 #15737
Comments
Can you try launching with I very much suspect this is a GPU/driver issue or an incompatibility with whatever window manager that is - it's very strange that the menu bar is being rendered in a monospaced font. |
@damieng Do you know do I disable gpu rasterization on atom ? |
Installing Electron globally is a bad idea. Electron and Atom are tightly tied together and upgrading one independently will break things. Which atom package did you install and where from? |
@damieng Thanks for the help, by the way. |
Sorry I mean which atom distribution did you install? The official .deb or .rpm or another version from a 3rd party package repository? |
@damieng |
I can't think of anything else to suggest. We only support a subset of Linux systems and void and xbps aren't part of that matrix. |
It seems to be the same thing recent Firefox/Thunderbird builds have: the default font rendering engine is set to be Skia instead of Cairo: -> http://z-issue.com/wp/ugly-fonts-in-mozilla-firefox-and-thunderbird-under-linux-skia-and-cairo/ |
Affects me too. Not sure if it's directly connected to atom. 1.22.0-beta1 was good, 1.22.0-beta2 shows similar trash-pixels around text symbols: http://screencloud.net/v/wIHRr upd: upd2: upd3: |
Thank you, @piwats |
@p-boiko Nice detective work! |
[Speaking as the FreeType maintainer] I'm rather sure the problem is the Skia framework which Atom is based on (so I was told) – you should upgrade to the one used by the current Firefox (version 56, I believe). Older versions of Skia rely on an undocumented layout (i.e., not part of the official API) of the glyph buffer which has changed recently in FreeType. |
@lemzwerg Atom is actually based on Electron which is based on Chrome. While we will pickup a newer version of Chrome with time it can take a while for these dependencies to be updated as both Chrome and Electron often change functionality in ways that can break Atom if not carefully reviewed and tested. |
@damieng do you know if the electron/chromium maintainers are aware of this issue? |
Yep. |
Hi @damieng |
@p-boiko Unless it's feasible to backport the fix to Electron v1.6.x, it will take a while. As you've hinted at, it means Chromium 62 landing in Electron, and then upgrading Electron in Atom. Both of these are non-trivial tasks. We have no roadmap to my knowledge, but even if I'm being very optimistic (and assuming a backport is not going to happen), this is unlikely to happen any time soon. I'd guess maybe January. |
January, yikes. Anyone have a workaround for Debian? It looks like libfreetype 2.8.0 isn't available in the buster repo any more, so I can't downgrade via apt-get. I'd give VS Code a try for a few months, but it looks like it's got the same issue: microsoft/vscode#35675 |
I was able to downgrade via the older package from snapshot.debian.org: http://snapshot.debian.org/package/freetype/2.8-0.2/#libfreetype6_2.8-0.2
|
@ragesoss, don't forget to |
Thanks everyone for opening, troubleshooting and giving a proper solution to this issue! (on Debian for now) On my Debian all is fine now... just for the sake of completeness, to "unhold" (be able to upgrade) the package again - Other then that thumbs up! It was pretty annoying and hard to figure out what to look for! Just as a note, this does also work on Debian Sid (Unstable!) |
I confirm : I had the same trouble under Debian GNU/Linux amd64 and the solution was fine. Thanks a lot for sharing 👍 |
Same here, Debian GNU/Linux Buster. |
Confirm the workaround works on Debian Sid. Had to install both the amd64 and i386 packages. |
@nathansobo This bug is still present in both the public and beta builds. It would be great to keep this ticket open until the fix from #16282 can be verified as also fixing this issue. Thanks! |
Workaround: atom-text-editor {
transform: scaleX(1.0000001);
} |
@qwhex That work around worked for me. Thanks! |
The workaround fixed also the trouble for me, thanks a lot qwhex :) |
Additional information: you should put @qwhex code in |
@50Wliu and @nathansobo My understanding is that Electron only fixed this issue by merging in Chromium 61 which was only done for the 1.9 (and later) branches, not 1.7 or 1.8. Please investigate and consider reopening this bug. |
The fix was manually backported to 1.7.10 https://github.com/electron/electron/releases/tag/v1.7.10 This is what is used in master so will be available in the next beta. |
Thank you for backporting the fix damieng. Can confirm qwhex's fix with mbologna's additional information works on both Debian testing and Manjaro. |
A script downloads that copies libfreetype6 2.8.0 to the app folder can be found here (works on Ubuntu): https://gist.github.com/moisadoru/aa96b54a109fe890f4a685d82dd66b11 |
I've asked ubuntu guys to hold back libfreetype6 for the bionic release. Those who are affected by this bug on Ubuntu Bionic, add repository of artful and use following commands:
(And don't forget to restart atom after this). |
If you want |
@bhack Does Atom have an apt source list for beta releases? Similar to this one? |
@qwhex The workaround works for me on Ubuntu 18.04 Beta, thanks! |
yep .... Downgrading libfreetype to 2.8-0.2 helped |
It is not needed anymore. Use Atom 1.25 |
That downgrading is quite a mess if you need devs for libgtk. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Prerequisites
Description
The fonts are looking strange,
I tried to reinstall atom three times (including the .atom directory) manually,
Tried to run on safe mode, development mode, and disabled gpu.
Steps to Reproduce
Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Reproduces how often: [What percentage of the time does it reproduce?]
Versions
OS: Void Linux x86_64
Model: H55M-D2H
Kernel: 4.12.13_1
Shell: zsh 5.4.2
Resolution: 1920x1080
CPU: Intel i3 540 (4) @ 3.059GHz
GPU: NVIDIA GeForce GTX 650
Memory: 7915MiB
apm --version:
apm 1.18.4
npm 3.10.10
node 6.9.5 x64
python 2.7.14
git 2.14.1
atom --version:
Atom : 1.20.1
Electron: 1.6.9
Chrome : 56.0.2924.87
Node : 7.4.0
Additional Information
The text was updated successfully, but these errors were encountered: