Brackets: [Ubuntu 18.04 LTS] Font not rendering properly

Created on 1 May 2018  Â·  76Comments  Â·  Source: adobe/brackets

Hello,

After installing brackets on Ubuntu 18.04 LTS... i noticed fonts are not rendering properly. I checked for all the font related solution still no luck.

Here is the screenshot what my screen is look like: https://ibb.co/b7393n

And here is the Brackets version : https://ibb.co/ndUow7

Font Settings:

Font : Ubuntu
Font Size : 14

Thanks

Most helpful comment

sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main"
sudo apt-get update
sudo apt-get install libfreetype6=2.8-0.2ubuntu2.1
sudo apt-mark hold libfreetype6

Screenshot from 2019-11-29 12-15-54

These commands solved my problem.

All 76 comments

Having the exact same issue with atom after upgrading Ubuntu from 17.10 to 18.04. So I guess the issue comes from Ubuntu, not the editors...

I also upgraded to Ubuntu 18.04 and have the same font display issue.

We are looking into this issue. More details will be updated shortly.

Me too, it's strange, because it seems to render properly in editors like VS Code, Pycharm or NetBeans, but in Google Chrome fonts looks terrible.

For font issue, libpango can be a reason. This package exists with two names in Ubuntu18.04(It was renamed recently, that's why transitional package)

libpango-1.0-0/bionic,now 1.40.14-1 amd64 [installed]
  Layout and rendering of internationalized text

libpango1.0-0/bionic,now 1.40.14-1 amd64 [installed,auto-removable]
  Layout and rendering of internationalized text (transitional package)

Please check if you have both installed.

Same here. All I did to fix font rendering is I updated atom to 1.26.1. Worked like a charm.

Also have same issue in Chrome. Looks ugly. How to fix it?

ugglyfont
Looks like this

screenshot from 2018-05-11 00-50-50
Me too. And I've comfirmed packages that @gautam0217 says are installed.

ikebeight@bionic:~$ dpkg -l | grep libpango
ii  libpango-1.0-0:amd64                       1.40.14-1                           amd64        Layout and rendering of internationalized text
ii  libpango1.0-0:amd64                        1.40.14-1                           amd64        Layout and rendering of internationalized text (transitional package)
ii  libpangocairo-1.0-0:amd64                  1.40.14-1                           amd64        Layout and rendering of internationalized text
ii  libpangoft2-1.0-0:amd64                    1.40.14-1                           amd64        Layout and rendering of internationalized text
ii  libpangox-1.0-0:amd64                      0.0.2-5                             amd64        pango library X backend
ii  libpangoxft-1.0-0:amd64                    1.40.14-1                           amd64        Layout and rendering of internationalized text

Shoud I remove it?

I would not.
This thread https://github.com/atom/atom/issues/15737 provides elaborate discussion about identical issue with font rendering, its root cause, dependencies, workarounds... They narrowed it down to libfreetype library and finally fixed.

This is a problem in FreeType 2.8.1 (libfreetype6). The solution is either downgrading to the Ubuntu 17.10 version (2.8.0), or upgrading to the latest 2.9.1 where the issue has been fixed. Unfortunately I couldn't find a .deb for Ubuntu or Debian yet, but I was able to find this OpenSUSE binary.

I downloaded that, extracted the libfreetype.so.6.16.0 binary. Then I went to /usr/lib/x86_64-linux-gnu/ and renamed libfreetype.so.6.15.0 file to old-libfreetype.so.6.15.0. Then I copied the new libfreetype.so.6.16.0 file to the folder and renamed it to libfreetype.so.6.15.0.

A roundabout way of doing it I guess, but it works. No more artifacts!

Easier method is to start searching from launchpad.net or packages.ubuntu.com (I prefer the latter, as it provides clear info about package dependencies, to check what else am I missing).

Yeah, hopefully it will hit the repositories soon and everyone will get the fix more easily. It may hit Debian first (keep an eye here).

Either way, this is a problem with FreeType and not with Brackets, so I think this issue could probably be closed.

Source of font rendering issue is libfreetype6-2.8.1 which is default version for Ubuntu-18.04.
Upgrading or downgrading libfreetype6 will fix this issue.

You can download libfreetype6_2.8-0.2_amd64.deb from here for downgrading case:
http://snapshot.debian.org/package/freetype/2.8-0.2/#libfreetype6_2.8-0.2

Updating to version 2.9.1 will also fixed the issue, but I could not find a package for this version. I have built it from source(https://download.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.gz) on Ubuntu-18.04(amd64) and put the binaries here.
https://github.com/gautam0217/dot_profile/tree/master/freetype291

Yes, downgrading libfreetype6 is a workaround BUT on the other hand, Atom renders fonts fine even on existing version 2.8.1-2ubuntu2 (18.04 default).
In my opinion this suggests the library itself is fine but it may just be used wrong way by Bracket (as Atom/Electron/Chrome did in older versions).

I can confirm it's a libfreetype6 2.8.1-2ubuntu2 issue. I mean, I see problematic font rendering in many other applications. Not only are the fonts themselves "broken" and "off", but the font sizes vary continuously. First I thought my display size settings were varying autonomously, but in the end it turned out to be the font size.
As for Canonical solving this: well, I think personally the down/ upgrade suggested here is the better, and certainly the quicker solution. After all, the reports on the fishy libfreetype6 version on git and Launchpad (e.g. https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/1722508) were already there in mid 2017, when in a previous *buntu release. So it'd be surprising if it now would be resolved instantly... DNS leak anybody?

@gautam0217 I install libfreetype6_2.8-0.2_amd64.deb through dpkg -i but after restart my ubuntu 18.04 upgrades the package to libfreetype6-2.8.1 back. How to solve this problem ?

If it installs automatically, why don't you just disable automated upgrades? Another option is to use apt-pinning but it's too much to explain - just google it.

sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main"
sudo apt-get update
sudo apt-get install libfreetype6=2.8-0.2ubuntu2.1
sudo apt-mark hold libfreetype6

Screenshot from 2019-11-29 12-15-54

These commands solved my problem.

Thanks for pointing out your issues.
We will update this thread with fix related to this issue.

GocaninTs solution works well :D
https://github.com/adobe/brackets/issues/14290#issuecomment-394118945

I just installed the latest version (1.28.2) of Atom from https://github.com/atom/atom/releases and it has resolved this issue for me.

I could not find freetype 2.9.1 packaged for Debian/Ubuntu so I created a PPA for Ubuntu 18.04 Bionic Beaver myself: https://launchpad.net/~as-asaw/+archive/ubuntu/fonts
Basically, I just replaced the sources in the Bionic's original 2.8.1 package and threw away a couple of patches meant to clean up the 2.8.1's code. The libfreetype6 deb package itself can also be installed on Ubuntu 16.04. Hope it will be useful to someone.

@trytip That's very strange. What exactly do you mean by the "file" that you were trying to install? Did you add the PPA in the usual way (i.e. as in the description)? In fact, there are i386 versions of all packages in my PPA as you can see here: https://launchpad.net/~as-asaw/+archive/ubuntu/fonts/+build/15142100 (here is the libfreetype6:i386 deb) And even if there weren't I am still curious how this PPA could have broken anything keeping in mind that APT keeps track of all dependencies.

@briskycat
completely my mistake. had issues with signature install and only downloaded x64 files. your PPA is working fine. thank you for that

I just updated Ubuntu from 16.04 LTS to 18.04 LTS and experienced the same problem in Atom. Uninstalling and re-installing Atom solved it for me.

Setting these in a file /etc/profile.d/fix-freetype.sh worked for me

export FREETYPE_PROPERTIES="truetype:interpreter-version=35 cff:no-stem-darkening=1 autofitter:warping=1"

@AnwarShah that maked gedit and synaptic very nice for me, but at the same time made Chrome very awful.

GocaninTs solution worked for me as well :+1:

I removed the artful repo afterwards as I don't (think I) need it for anything else after the downgrade:

sudo add-apt-repository --remove "deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main"

@asfernandes Yeah, that's true. Chrome and firefox looks awful on Ubuntu 18.04. Don't know what's the main reason.

is there a definitive solution for this?

@GocaninTs solution worked for me as well

I installed 18.04 when prompted by Software Updater, and it had so many bugs, what a disgrace for an LTS release. Since May and not change to the package list to fix this in August, another disgrace.

  • I do not look forward to pegging my OS to an old package.
  • I am not keen on installing code under fake file names.
  • The editor atom install fixed nothing in LibreOffice.

I found freetype-2.9.1-2.fc29.x86_64.rpm and converted it using alien, many "warning:.*NOKEY", but it seems like it refuses to install. Synaptic says I am still on the old one.

$ sudo alien Downloads/freetype-2.9.1-2.fc29.x86_64.rpm
[sudo] password for dgp:
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
warning: Downloads/freetype-2.9.1-2.fc29.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
freetype_2.9.1-3_amd64.deb generated
$ mv freetype_2.9.1-3_amd64.deb Downloads
$ (cd Downloads;sudo dpkg -i freetype_2.9.1-3_amd64.deb)
Selecting previously unselected package freetype.
(Reading database ... 323396 files and directories currently installed.)
Preparing to unpack freetype_2.9.1-3_amd64.deb ...
Unpacking freetype (2.9.1-3) ...
Setting up freetype (2.9.1-3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
$

Anyone have a clean way forward yet?

PS: When I reboot, it comes up with this notification in a window:

Failure to download extra data files

The following packages requested additional data downloads after package installation, but the data could not be downloaded or could not be processed.

ttf-mscorefonts-installer

The download will be attempted again later, or you can try the download again now. Running this command requires an active Internet connection.

Buy when I hit the reinstall button and add my password, it hangs with a wait circle. I checked on that package, and it seems to be properly installed, but the system thinks not.

@DGPickett if you want a clean way of installing FreeType 2.9.1 on Ubuntu 18.04 see my comment above: https://github.com/adobe/brackets/issues/14290#issuecomment-406381592 Just add the PPA as an ordinary PPA following the instructions in the link and then do apt update && apt dist-upgrade.

OK, I followed your link and that seems OK, as I can see the freetype updated in Synaptic. Thanks!

Oops, right freetype, still no TT fonts in LibreOffice Writer. Are there more steps to undo this damage? Ugh, the original Ubuntu had no TT problems, and I loved the Verdana so much after an IEEE study found it most productive, I have tons of docs now I cannot render.

Plus, this is back, the busted package reinstaller: https://photos.app.goo.gl/Cbci4oDMHEK1osdX9

Which hangs like this (the red print at the bottom seems to be because it tries to go with no password, and does not disappear when I add the missing password, which is a bug): https://photos.app.goo.gl/Jd2aj8XQq41ubKYH6

@DGPickett you may want to run sudo apt install --reinstall libfreetype6 to make sure your previous freetype package (the one converted from RPM) gets uninstalled. You may also want to run sudo apt install -f to fix any unconfigured packages/packages with unmet dependencies.

All that, reboots, still no TTF in LibreOffice 6.1! At least the "Failure to download extra data files" is absent this time.

Spoke too soon, "Failure to download extra data files" is back complaining about ttf-mscorefonts-installer. Maybe it is some side effect of using Synaptic to reinstall some ttf packages.

I used Synaptics to reinstall both update-notifier and ttf-mscorefonts-installer after a complete cleanup. No improvement. I guess I will have to teach libreOffice to substitute Veranda for Verdana.

Is there an easy way to return to LTS 16 so I get my ttf back? It was cleaner with the title bars, now I lose screen to one or two more. Is that gnome or kde or something?

Well, except I still get the window saying ttf-mscorefonts-installer did not install completely. Some posts imply there are dead URLs for fonts in the mix. It is just a cosmetic pest, since I have my fonts everywhere for now!

I have related/same issue. See the attached screenshot. Have this problem in Ubuntu 18.04 or I have broke something up? Please suggest.
gedit

I have this problem on Gentoo as well. Every app I use renders fonts clearly and neat except brackets!
(I use infinality-ultimate fontconfig package). Guys please, fix it somehow!

Which solutions above did you try? I am free of all but the daily update box!

Which solutions above did you try?

Quite a few, actually -- they all about ubuntu and PPAs. At least I've freetype-2.9.1
The issue is that all these solutions are essentially _workarounds_, not solutions. The real problem is that every single app on my system works fine but brackets, that renders font on par with systemresquecd -- smal live distro aimed for recovering which includes nothing to improve font rendering at all. I see the same awful rendering quality on brackets. I've an imagination that brackets somehow just bypasses all the cool linux stuff aimed at good font rendering. That's what needs to be fixed, not font management which does essentially work. And I can see font related issues here opened over and over again since at least 2014 but no real progress for 4 years... That would be pity if I'll have to abandon overall nice brackets because of nightmare-stiled font rendering.

GocaninTs's solution
GocaninTs's solution works pretty well for my "Updated to Ubuntu18.04 chrome text rending stange" problem which troubled me a lot.
After done these steps, just restart chrome can see it normal.
Thanks!

sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main" sudo apt-get update sudo apt-get install libfreetype6=2.8-0.2ubuntu2.1 sudo apt-mark hold libfreetype6

This help me .

Awesome dude. Worked really well.

for the record: downgrading libfreetype6 doesn't solve the issue for me. so it's not a "silver bullet" solution

It works but when updating the system I have to do this again

for me it is not a solution

I have it working with the Debian patch but it bugs me daily about the missing Ubuntu patch!

-----Original Message-----
From: Nemachtilli notifications@github.com
To: adobe/brackets brackets@noreply.github.com
Cc: DGPickett dgpickett@aol.com; Mention mention@noreply.github.com
Sent: Thu, Nov 29, 2018 9:29 pm
Subject: Re: [adobe/brackets] [Ubuntu 18.04 LTS] Font not rendering properly (#14290)

It works but when updating the system I have to do this again
for me it is not a solution
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

The daily messages have stopped, so I guess someone got this working!

-----Original Message-----
From: David G. Pickett dgpickett@aol.com
To: reply+0080c58c14c76cfa270e7452fb4d28b376ebe273518c9ba192cf000000011818629892a169ce13059d75 reply@reply.github.com; brackets brackets@noreply.github.com
Cc: mention mention@noreply.github.com
Sent: Sun, Dec 2, 2018 7:16 pm
Subject: Re: [adobe/brackets] [Ubuntu 18.04 LTS] Font not rendering properly (#14290)

I have it working with the Debian patch but it bugs me daily about the missing Ubuntu patch!

-----Original Message-----
From: Nemachtilli notifications@github.com
To: adobe/brackets brackets@noreply.github.com
Cc: DGPickett dgpickett@aol.com; Mention mention@noreply.github.com
Sent: Thu, Nov 29, 2018 9:29 pm
Subject: Re: [adobe/brackets] [Ubuntu 18.04 LTS] Font not rendering properly (#14290)

It works but when updating the system I have to do this again
for me it is not a solution
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I'm running xubuntu 18.04. I've just ran into this issue (only with brackets) and have noticed it is only a problem when installing using the .deb file provided from their site. when installing using snap there are no font rendering issues.

why the difference?

I'm running xubuntu 18.04. I've just ran into this issue (only with brackets) and have noticed it is only a problem when installing using the .deb file provided from their site. when installing using snap there are no font rendering issues.

why the difference?

Which snap are you referring to?

the snap for brackets, developed by snapcrafters according to the xubuntu Software store. excuse my ignorance if you are asking for something different, I'm just getting my head around snaps. I've since uninstalled the snap version and downgraded libfreetype6 to the previous working version and installed the .deb from brackets website and this has resolved the problem for me.

sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main" sudo apt-get update sudo apt-get install libfreetype6=2.8-0.2ubuntu2.1 sudo apt-mark hold libfreetype6

This help me .

Worked for me too!

chromium (v61+), atom (https://github.com/atom/atom/issues/15737), vscode (https://github.com/Microsoft/vscode/issues/35675), electron (https://github.com/electron/libchromiumcontent/pull/387, backported from chromium 61) allready solve this issue. Can a similar approach be used for brackets?

Here's a continuing flavor of this problem. I just put up a new Ubuntu 18.04.2 system on an empty disk using a usb pen drive iso image, and while it has Verdana on LibreOffice, Verdana is missing in Google Docs/Sheets, on both Chrome and FireFox.

sudo apt-get install libpango1.0-0
Try this command it solved the problem for me

Just install a new Ubuntu 18.04.2 and fonts look just awful. Hasn't been fixed yet.

I found it was easy to fix. My shell history shows:

sudo apt install ttf-mscorefonts-installer
sudo apt-get install msttcorefonts
sudo alien Downloads/freetype-2.9.1-2.fc29.x86_64.rpm
sudo dpkg -i *.deb+
sudo dpkg-reconfigure ttf-mscorefonts-installer

It's somewhere out that way?

Nope. it is not working.
Why all some images are Firefox in dirty. It not rendered properly.

sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main" sudo apt-get update sudo apt-get install libfreetype6=2.8-0.2ubuntu2.1 sudo apt-mark hold libfreetype6

These commands solved my problem.

Well, I couldn't install it from repo but I downloaded the deb from https://launchpad.net/ubuntu/artful/amd64/libfreetype6/2.8-0.2ubuntu2.1

and then

sudo apt-get install libfreetype6=2.8-0.2ubuntu2.1 
sudo apt-mark hold libfreetype6

now it's allright, thank you!

Another solution is to download the sources of https://launchpad.net/ubuntu/artful/amd64/libfreetype6/2.8-0.2ubuntu2.1

extract it and create a directory for binaries, i.e. ~/libfreetype6bin. Now go to the folder with the extracted sources of libfreetype, and put
./configure --prefix="/path/to/that/folder
make
sudo make install

after that you can copy libraries into Brackets executable folder, or link them. That must work

Upgrading by downloading the latest libfreetype6 for buster from packages.debian.org and running sudo dpkg -i libfreetype6_2.9.1-3_* successfully updated libfreetype6 to 2.9.1-3 on Ubuntu 18.04 for me, but did not solve this problem.

From https://github.com/Microsoft/vscode/issues/35675#issuecomment-345761179

A workaround without having to change freetype, is to change your font rendering to standard grayscale antialiasing and slight / medium hinting. This issue only occured (at least for me) when I had the subpixel antialias.

This worked for me.

Problems are caused by Intel processor are there any body out here that saw this problems and don't use Intel CPUs(i doubt it)?

Problems are caused by Intel processor are there any body out here that saw this problems and don't use Intel CPUs(i doubt it)?

Yes. we have. Im using AMD Phenom CPU and i have same problem. (AMD Phenom(tm) II X4 965 Processor)

Dudes, it is fixed now for most of us, and we still have the same CPUs. Read more carefully, think more discerningly.

Still an issue on Ubuntu 18.04, vs code renders text fine.

I would rather not have to mess around with font packages to implement a fix.

I have libfreetype6 2.9.1-0asaw, here is how the newest version, but it´s not solved the problem for me. Someone knows something about?

DId you do all the steps given above? Because it seems to have worked for us now these many months later, still.

DId you do all the steps given above? Because it seems to have worked for us now these many months later, still.

i thinked that with the last version would not have problems. So, i´m goingo to try the downgrade

the snap for brackets, developed by snapcrafters according to the xubuntu Software store. excuse my ignorance if you are asking for something different, I'm just getting my head around snaps. I've since uninstalled the snap version and downgraded libfreetype6 to the previous working version and installed the .deb from brackets website and this has resolved the problem for me.

Thanks, that solved it for me. Note, I had to install the deb package following these instructions due to a package dependency problem with libcurl3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asportnoy picture asportnoy  Â·  3Comments

Bluefirecracker picture Bluefirecracker  Â·  4Comments

naphipps picture naphipps  Â·  4Comments

macjabeth picture macjabeth  Â·  3Comments

declanmarks picture declanmarks  Â·  3Comments