Skip to content
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

Bad Font rendering on Linux (Ubuntu/Linux Mint) #14374

Open
3 tasks done
core-ai-bot opened this issue Aug 31, 2021 · 14 comments
Open
3 tasks done

Bad Font rendering on Linux (Ubuntu/Linux Mint) #14374

core-ai-bot opened this issue Aug 31, 2021 · 14 comments

Comments

@core-ai-bot
Copy link
Member

Issue by toxicmender
Thursday Dec 13, 2018 at 07:53 GMT
Originally opened as adobe/brackets#14610


Prerequisites

For more information on how to write a good bug report read here
For more information on how to contribute read here

Description

brackets_screenshot
Obvious render issues have been highlighted (These are more pronounced in Dark Themes)

Steps to Reproduce

  1. Download & install Brackets 1.13 (after repackaging according to Handle JS project with many dependencies #14338 & Installation Problem #14171)
  2. Open Brackets, notice the badly rendered fonts
  3. Relaunch with all extensions (whatever extension is on a fresh install) disabled
  4. Notice the badly rendered fonts persist

Expected behavior: Fonts to rendered smoothly like in any other Editor
Actual behavior: Badly rendered fonts

Versions

Please include the OS and what version of the OS you're running.
Linux Mint 19 Cinnamon Tara [Linux 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:15:38 UTC 2018 i686 i686 i686 GNU/Linux]
Please include the version of Brackets. You can find it under Help -> About Brackets (Windows and Linux) or Brackets -> About Brackets (macOS)
Brackets-Release 1.13 build 1.13.0-17696 (release 49d29a8bc) 32-bit

@core-ai-bot
Copy link
Member Author

Comment by cosmin-vi
Thursday Feb 14, 2019 at 16:33 GMT


@toxicmender
It seems Brackets is using bitmap fonts and it uses the Linux libfreetype6 package for font rendering.

Prior to Ubuntu 18.04 (on which Linux Mint 19 is based), the libfreetype6 package version was 2.8.0 (libfreetype6_2.8-0.2, available in the artful ubuntu packages).
But Ubuntu 18.04 (and hence Linux Mint 19) switched to libfreetype6 version 2.8.1 (libfreetype6_2.8.1-2ubuntu2, available in the bionic and cosmic ubuntu packages) which has a bitmap font rendering bug: https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/1769132
That bug was fixed in the next libfreetype6 version (libfreetype6_2.9.1-3, available in the disco ubuntu packages), but it's not available yet.

You can check this long thread for some info and fix suggestions: adobe/brackets#14290

To fix Brackets font rendering you need to either downgrade to libfreetype6_2.8-0.2 or upgrade to libfreetype6_2.9.1-3, only the downgrade worked for me.

Here is the downgrade fix that worked for me:

  1. Download libfreetype6_2.8-0.2 based on your platform from:
    http://snapshot.debian.org/package/freetype/2.8-0.2/#libfreetype6_2.8-0.2
    e.g.
    http://snapshot.debian.org/archive/debian/20170630T215111Z/pool/main/f/freetype/libfreetype6_2.8-0.2_amd64.deb

  2. Open a terminal in the folder where you downloaded the file and run:
    sudo apt-get update
    sudo apt-get install ./libfreetype6_2.8-0.2_amd64.deb
    sudo apt-mark hold libfreetype6
    (the last command is to mark libfreetype6 so that it's not auto-updated by Linux back to the buggy version)

@core-ai-bot
Copy link
Member Author

Comment by tiagofrancafernandes
Friday May 10, 2019 at 13:36 GMT


Try this,
work for me,
http://snapshot.debian.org/archive/debian/20170630T215111Z/pool/main/f/freetype/libfreetype6_2.8-0.2_amd64.deb

I get thits in this post
adobe/brackets#14451 (comment)

@core-ai-bot
Copy link
Member Author

Comment by Krelh
Sunday Nov 24, 2019 at 09:32 GMT


I fixed it by opening MATE Tweak (I use ubuntu mate) then to Windows then Fonts and here you can choose Rendering option which by default is set on Subpixel smoothing (LCDs), if you select Best shapes all these bad pixels will dissapear

@core-ai-bot
Copy link
Member Author

Comment by gaetgu
Wednesday Feb 12, 2020 at 02:31 GMT


@cosmin-vi 's solution worked for me. Thanks so much!

@core-ai-bot
Copy link
Member Author

Comment by christyanbrayan
Saturday Mar 07, 2020 at 15:21 GMT


This issue is open for a while, but I hope someone can help me.

I use elementaryOS 5.1, based on Ubuntu 18.04.3 LTS, the atual package is libfreetype6 2.9.1-0asaw, and here is how the newest version, but i have the same problem with the fonts. I researched but I couldn't solve. Someone knows how to resolve this?

@core-ai-bot
Copy link
Member Author

Comment by Krelh
Saturday Mar 07, 2020 at 15:53 GMT


This issue is open for a while, but I hope someone can help me.

I use elementaryOS 5.1, based on Ubuntu 18.04.3 LTS, the atual package is libfreetype6 2.9.1-0asaw, and here is how the newest version, but i have the same problem with the fonts. I researched but I couldn't solve. Someone knows how to resolve this?

as I said before you have to reach out you system font settings (if it's ubuntu based then it should be in Appearance) then into font section you have to choose Best shapes

@core-ai-bot
Copy link
Member Author

Comment by christyanbrayan
Sunday Mar 08, 2020 at 19:26 GMT


This issue is open for a while, but I hope someone can help me.
I use elementaryOS 5.1, based on Ubuntu 18.04.3 LTS, the atual package is libfreetype6 2.9.1-0asaw, and here is how the newest version, but i have the same problem with the fonts. I researched but I couldn't solve. Someone knows how to resolve this?

as I said before you have to reach out you system font settings (if it's ubuntu based then it should be in Appearance) then into font section you have to choose Best shapes

so, only chose other font?

@core-ai-bot
Copy link
Member Author

Comment by Krelh
Sunday Mar 08, 2020 at 20:04 GMT


@christyanbrayan no, you have to change only rendering type it's all about the rendering not font you use. I will put a image to show you better
I never used elementaryOS so I can't help you find font settings but I'm sure it's not so hard. You should search for appearance or tweak
appearance

@core-ai-bot
Copy link
Member Author

Comment by christyanbrayan
Monday Mar 09, 2020 at 15:56 GMT


@Krelh
I researched it here and it looks like it doesn't have this configuration natively, but I found the 'Infinality' solution, which I still haven't been able to install for some reason. I'll see here, but thanks anyway

@core-ai-bot
Copy link
Member Author

Comment by tlotr
Sunday Mar 22, 2020 at 04:42 GMT


I am using ZorinOS 15. I used the Gnome Tweak tool to make the changes to font rendering. The below settings worked for me.

Screenshot from 2020-03-22 10-11-05

@core-ai-bot
Copy link
Member Author

Comment by christyanbrayan
Friday Mar 27, 2020 at 14:51 GMT


@tlotr thank you! finally something that worked, I was almost giving up on using the my favorite editor

@core-ai-bot
Copy link
Member Author

Comment by maxton-projects
Saturday Dec 12, 2020 at 18:16 GMT


@tlotr thank you!
This really helps.

@core-ai-bot
Copy link
Member Author

Comment by aayushchugh
Saturday Jan 16, 2021 at 08:37 GMT


@tlotr That Worked thanks I was reinstalling brackets but it was not working finally thank god

@core-ai-bot
Copy link
Member Author

Comment by apodtele
Monday Apr 12, 2021 at 02:08 GMT


The bug might come from mishandling of padding in sub-pixel bitmaps. It is best to trust FreeType here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant