Last active
November 9, 2024 13:32
-
-
Save darkguy2008/0b27a23ac40d863553f0b01ed7da9cfd to your computer and use it in GitHub Desktop.
Fix Linux font rendering in Ubuntu / KDE Neon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ref: https://peter.quantr.hk/2012/12/how-to-change-fedoras-font-rendering-to-get-an-ubuntu-like-result/#page-content | |
1) xrdb -query | grep -i xft | |
Make sure it looks like this: | |
Xft.antialias: 1 | |
Xft.hinting: 1 | |
Xft.hintstyle: hintslight | |
Xft.lcdfilter: lcddefault | |
Xft.rgba: rgb | |
2) echo "Xft.lcdfilter: lcddefault" > ~/.Xresources | |
3) Reboot | |
4) Go to your font settings (or apply the same echo commands). | |
In KDE Neon, I used this for a 1080p screen: | |
All fonts: Noto Sans 9pt | |
Fixed width: Hack 9pt | |
Small: Noto Sans 7pt | |
Anti-Aliasing: Enable | |
Excluded range: Disabled | |
Sub-pixel rendering: RGB | |
Hinting: Slight | |
No forced DPI | |
Enjoy pixel-perfect fonts like in Windows!!! | |
---------------------------------------------------------------------- | |
New (better) settings: | |
All fonts: Tahoma 9pt | |
Fixed width: Consolas 9pt | |
Small: Tahoma 7pt | |
Anti-Aliasing: Enable | |
Excluded range: Disabled | |
Sub-pixel rendering: RGB | |
Hinting: Slight | |
No forced DPI | |
This makes it all look almost like Windows. | |
You can get the Consolas and Tahoma fonts from your | |
Windows installation and put it in ~/.fonts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment