adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

[Ubuntu 18.04 LTS] Font not rendering properly #14290

Open bypassspace opened 6 years ago

bypassspace commented 6 years ago

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

Nemachtilli commented 5 years ago

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

for me it is not a solution

DGPickett commented 5 years ago

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.

DGPickett commented 5 years ago

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.

rekurzion commented 5 years ago

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?

AnwarShah commented 5 years ago

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?

rekurzion commented 5 years ago

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.

BinoyDarvin commented 5 years ago

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!

tiagofrancafernandes commented 5 years ago

This resolve to me https://github.com/adobe/brackets/issues/14610#issuecomment-463695532

Hamper commented 5 years ago

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?

DGPickett commented 5 years ago

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.

Combinacijus commented 5 years ago

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

lahtis commented 5 years ago

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

DGPickett commented 5 years ago

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?

lahtis commented 5 years ago

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

romasvrd commented 5 years ago

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!

romasvrd commented 5 years ago

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

deutrino commented 5 years ago

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.

deutrino commented 5 years ago

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.

urbandroid commented 4 years ago

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)?

lahtis commented 4 years ago

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)

DGPickett commented 4 years ago

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

CodePint commented 4 years ago

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.

christyanbrayan commented 4 years ago

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?

DGPickett commented 4 years ago

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

christyanbrayan commented 4 years ago

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

ltrottier commented 4 years ago

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