text clarity on windows is so good, can I get the same on linux?

2 years ago by Im28xwa to c/linux

I tried different font settings in the font settings and it didn't improve much (font hinting, anti aliasing, custom DPI settings, different font size)

The font is the default one which is Ubuntu Regular with font size set to 10

Sub pixel order is set properly to RGB Linux Mint xfce

Even when running windows in a virtual machine, the font rendering in it is miles ahead of what I got on my Linux setup!!!

TCB13 49 points 2 years ago

You will never get the same font rendering on Linux as on Windows as Windows font rendering (ClearType) is very strange, complicated and covered by patents.

Font rendering is also kind of a subjective thing. To anyone who is used macOS, windows font rendering looks wrong as well. Apple's font rendering renders fonts much closer to how they would look printed out. Windows tries to increase readability by reducing blurriness and aligning everything perfectly with pixels, but it does this at the expense of accuracy.

Linux's font rendering tends to be a bit behind, but is likely to be more similar to macOS than to Windows rendering as time goes forward. The fonts themselves are often made available by Microsoft for using on different systems, it's just the rendering that is different.

For me, on my screens just by installing Segoe UI and tweaking the hinting / antialiasing under GNOME settings makes it really close to what Windows delivers. The default Ubuntu font, Cantarell and Sans don't seem to be very good fonts for a great rendering experience.

The following links may be of interest to you:

path: 0 9869573, hotness: undefined, score: 49, children: 7
Max_P 13 points 2 years ago

Definitely very subjective. People keep saying macOS has amazing font rendering but for me it just looks like a blurry mess, especially on non-retina displays. My fonts are set to be as sharp as possible on Linux because when coding and in the terminal I want very sharp fonts so they're easier to read for me.

Seconding the dependence on the particular font as well. Cantarell, Ubuntu and OpenSans are all fairly blurry regardless, unless seen on HiDPI screens in which case they do look more like macOS. DejaVu Sans can be very sharp in contrast at very low resolutions because it's been made in the 800x600 and 1024x768 days and optimized to look sharp when small.

path: 0 9869573 9873004, hotness: undefined, score: 13, children: 2
TrickDacy 5 points 2 years ago

I gotta highly disagree with the blurry mess comment. To my eye Linux is looking about 90% as good as Mac these days. Mac fonts look the best but that os is worse in a lot of other ways. Windows always has looked worst font wise, though I will say it looks better these days than it used to.

path: 0 9869573 9873004 9875007, hotness: undefined, score: 5, children: 1
flying_sheep 6 points 2 years ago

Objectively, Apple is focusing on leveraging high DPI over subpixel tricks.

It makes sense that people who value sharpness on low DPI screens prefer subpixel rendering over grayscale.

path: 0 9869573 9873004 9875007 9883872, hotness: undefined, score: 6, children: 0
massivefailure 5 points 2 years ago

Windows and Mac rendering have always been ugly as sin to me and I vastly prefer Linux font displays. They always look cleaner and less processed.

path: 0 9869573 9897896, hotness: undefined, score: 5, children: 0
gianni 5 points 2 years ago

I'm partial to macOS and I agree, I think Windows font rendering looks like garbage. On GNOME, I've found things to be okay. Sucks that patents are involved in this mess

path: 0 9869573 9896598, hotness: undefined, score: 5, children: 1
sunbeam60 0 points 2 years ago

Everyone believes what they look at every day “looks right”. It’s just habit.

path: 0 9869573 9896598 9904034, hotness: undefined, score: 0, children: 0
Im28xwa 1 point 2 years ago

Thanks a lot for the info! I just went and installed segoe Ui font, and it looked even worse than Ubuntu Regular and I tried all the hinting options and made sure to restart after each change!!!

path: 0 9869573 9887876, hotness: undefined, score: 1, children: 0
lemmyvore 35 points 2 years ago

Can we see some screenshots? It's hard to work just with someone's idea of "better". Not to mention that font rendering can be tweaked on both Windows and Linux and we don't know what settings you've changed so far. Oh and I hope you're comparing the same font otherwise there isn't much point you the comparison.

path: 0 9871902, hotness: undefined, score: 35, children: 6
bizdelnick 3 points 2 years ago

And also show ls -l /etc/fonts/conf.d

path: 0 9871902 9884164, hotness: undefined, score: 3, children: 1
Im28xwa 1 point 2 years ago path: 0 9871902 9884164 9887235, hotness: undefined, score: 1, children: 0
Im28xwa 1 point 2 years ago

I tried to upload a screenshot when creating this post, but it seems there is an issue with the instance I'm on, so I just tried uploading it to Imgur instead so here you go, and oh scaling is set to 1x (there is only 1x which is the default and 2x which I tried today, but it made all the UI elements and text too big and yep I'm not using the same fonts for comparison and I don't think it is as simple to install and use the font used by win 10 and/or 11, and honestly I do not know if using Microsoft font going to fix this issue or not

screenshot these all are the default settings except maybe for Hinting

path: 0 9871902 9887496, hotness: undefined, score: 1, children: 3
bizdelnick 13 points 2 years ago

The biggest problem that I see on this screenshot is that it is a compressed JPEG.

path: 0 9871902 9887496 9892188, hotness: undefined, score: 13, children: 2
Im28xwa 0 points 2 years ago

Lol blame linux mint, or is it imgur?

path: 0 9871902 9887496 9892188 9994892, hotness: undefined, score: 0, children: 1
bizdelnick 1 point 2 years ago

I don't know, however this is impossible to understand what's wrong with your fonts.

path: 0 9871902 9887496 9892188 9994892 10014823, hotness: undefined, score: 1, children: 0
just_another_person 12 points 2 years ago

This is almost always a compositor issue, and unless something is terribly wrong, only affects certain applications that don't properly use the composite rendering method. First, find out which compositor you're in (probably Wayland if a modern distro), then find out which apps seem blurry. Last step: force those apps to use your specific compositor (start searching for runtime options for the app).

Should fix it.

path: 0 9866105, hotness: undefined, score: 12, children: 4
Im28xwa 1 point 2 years ago

I'm running linux mint xfce which after checking it seems that it uses xfwm 4.18.0 and everything is blury, there isn't a single thing that isn't blury well except for the windows 10 vm lol

path: 0 9866105 9866932, hotness: undefined, score: 1, children: 3
just_another_person 5 points 2 years ago

Did you turn off any fancy UI tweaks like scaling (especially fractional)? Have you confirmed if your session has a compositor running?

Also, try something like this

Depending on your overall OS and sessions setup, your distro install may not be tweaked properly for Xfce, which still doesn't have Wayland support last I checked. So unless you made sure to clear out all the other global configs that could impact the GUI session, you'll probably have some issues unless you switch to an Xfce catered distro.

path: 0 9866105 9866932 9868125, hotness: undefined, score: 5, children: 0
Para_lyzed 2 points 2 years ago

Sounds like a fractional scaling issue. Keep the scaling at 100% to avoid those kinds of issues

path: 0 9866105 9866932 9884344, hotness: undefined, score: 2, children: 1
Im28xwa 0 points 2 years ago

Scaling has always been set to 1x (100%) and I have never changed it or played with it until today!

path: 0 9866105 9866932 9884344 9888799, hotness: undefined, score: 0, children: 0
poinck 11 points 2 years ago

I wonder what someone has to do to have worse looking font rendering on Linux. I find the font rendering on Windows worse in every regard and inconsistent (size). On Linux I just set hinting to slight and anti-aliasing to greyscale and all my fonts look nice. Same font with same size on Windows (VSCode is the only program I use on both OS) looks slightly blurred; only the fact that my work display has a higher pixels density makes it ok for me.

path: 0 9871144, hotness: undefined, score: 11, children: 2
Rustmilian 9 points 2 years ago

Font rendering is complex and depends on several settings and features lining up perfectly. Anti-aliasing, DPI, fractional scaling, hinting, and subpixel rendering are all important factors that contribute to the quality and appearance of text on a digital display.

path: 0 9871144 9872068, hotness: undefined, score: 9, children: 0
Im28xwa 0 points 2 years ago

Apparently nothing just get a 10 year old laptop and use Linux mint on it🤷‍♂️

path: 0 9871144 10069790, hotness: undefined, score: 0, children: 0
possiblylinux127 7 points 2 years ago

Let me guess, Nvidia

path: 0 9898831, hotness: undefined, score: 7, children: 2
john89 1 point 2 years ago

Has nothing to do with it.

path: 0 9898831 9909371, hotness: undefined, score: 1, children: 0
Im28xwa 0 points 2 years ago

Idk but I forgot to mention that now the laptop actually wakes up from sleep after I switched to the OS drivers, those proprietary drivers are really bad, god I shouldn't have switched to them at all.

path: 0 9898831 9994826, hotness: undefined, score: 0, children: 0
eugenia 5 points 2 years ago

The replies here are good. Different rendering engines. Also, try another font. Like Roboto, or Inter, by Google.

path: 0 9872826, hotness: undefined, score: 5, children: 0
MonkderDritte 4 points 2 years ago

Look into ArchWiki "font configuration" > hinting, you seem to have issues.

path: 0 9868756, hotness: undefined, score: 4, children: 3
Rustmilian 4 points 2 years ago path: 0 9868756 9872241, hotness: undefined, score: 4, children: 1
MonkderDritte 2 points 2 years ago

Thanks. And sorry.

path: 0 9868756 9872241 9872266, hotness: undefined, score: 2, children: 0
bizdelnick 2 points 2 years ago

This is a correct recommendation, however in Debian-based distros you don't need to edit configuration files manually. Just pick some of preinstalled configs. They are installed in /usr/share/fontconfig/conf.avail and symlinked to /etc/fonts/conf.d.

path: 0 9868756 9884248, hotness: undefined, score: 2, children: 0
MoLoPoLY 4 points 2 years ago

I have a similar issue but in my case between KDE and Gnome. KDE is much cleaner by display the fonts as Gnome. But I prefer using Gnome, because of the cluttered interface of most KDE applications.

path: 0 9865772, hotness: undefined, score: 4, children: 3
Im28xwa 0 points 2 years ago

I just tried a live Lubunto install, and it too looks blurry running the OS GPU drivers

path: 0 9865772 9867653, hotness: undefined, score: 0, children: 2
Rustmilian 1 point 2 years ago

On KDE plasma the fractional scaling also plays a role in text rendering. Then there's also the "Legacy Application Scaling" for X11 apps on the Wayland session.

path: 0 9865772 9867653 9871290, hotness: undefined, score: 1, children: 1
Im28xwa 0 points 2 years ago

I have decided to switch to OpenSUSE which uses KDE by default so let's see and if this old laptop can't handle it then will switch to Lbuntu as LXQt is its main and only variant available unlike mint

path: 0 9865772 9867653 9871290 10069724, hotness: undefined, score: 0, children: 0
geoma 3 points 2 years ago

Are your video card and monitor working properly on linux? You getting the resolution you should?

path: 0 9865633, hotness: undefined, score: 3, children: 10
Im28xwa 2 points 2 years ago

Very old Toshiba laptop with a very old Nvidia gpu GT 525M running proprietary drivers connected to a 1080p monitor and yes it is running at 1080p

path: 0 9865633 9866389, hotness: undefined, score: 2, children: 9
geoma 1 point 2 years ago

I don't know. This sounds like some strange thing, never happened to me and I deal a lot with old computers... Maybe try another distro?

path: 0 9865633 9866389 9885662, hotness: undefined, score: 1, children: 4
Im28xwa 0 points 2 years ago

I have always wanted to try opensuse so we will see

path: 0 9865633 9866389 9885662 9887772, hotness: undefined, score: 0, children: 3
geoma 1 point 2 years ago

Fedora atomic versions are great IMHO. Or mx linux or debian if you are looking for something more normal

path: 0 9865633 9866389 9885662 9887772 9897462, hotness: undefined, score: 1, children: 2
toastal 1 point 2 years ago

If your next machine has a higher pixel density than 1080p, the need for aggressive hinting diminishes as pixels are smaller & needing to extrapolate subpixels accurately is less important (and less taxing to compute). That wouldn’t help you now, but in the future you may want to consider something like 2.8k which isn’t overkill like 4k on a small laptop display at arm’s length.

path: 0 9865633 9866389 9901473, hotness: undefined, score: 1, children: 1
Im28xwa 0 points 2 years ago

Thanks for the valuable information! I'm still not sure if I'm gonna get a laptop or build a desktop as an upgrade for the future but one thing is sure is that 1440p is the absolute minimum for me, no way in hell I'm getting anything lower than that

path: 0 9865633 9866389 9901473 9994800, hotness: undefined, score: 0, children: 0
PoopBuffet 1 point 2 years ago

It's not using Nvidia optimus technology is it? My old laptop had a GT 550M in an optimus configuration which made using linux tricky for quite a long time. Should be easier now i reckon though.

path: 0 9865633 9866389 9871454, hotness: undefined, score: 1, children: 1
Im28xwa 1 point 2 years ago

There is no integrated GPU so no

path: 0 9865633 9866389 9871454 9880053, hotness: undefined, score: 1, children: 0
supangle 3 points 2 years ago

i use mint on my nvidia gpu with latest drivers and i have no problem

path: 0 9865955, hotness: undefined, score: 3, children: 5
Im28xwa 3 points 2 years ago

Maybe because of the old Nvidia gpu, hmm will try the OS drivers hope it helps,

Update: didn't help but it did fix an issue with the flatpak version of telegram (openGL) and wine is no longer complaining about something that's broken with the proprietary driver + the boot and shutdown animation now actually runs (which is Linux mint logo)

path: 0 9865955 9866424, hotness: undefined, score: 3, children: 4
Rustmilian 2 points 2 years ago

What's the WINE error message you get with the proprietary driver?

path: 0 9865955 9866424 9872102, hotness: undefined, score: 2, children: 3
Im28xwa 0 points 2 years ago

0024:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.

path: 0 9865955 9866424 9872102 9880043, hotness: undefined, score: 0, children: 2
Rustmilian 1 point 2 years ago

This error is caused by a compatibility issue between Wine's RandR (X11 display extension) implementation and the NVIDIA proprietary drivers.

a. Install winetricks and run winetricks orm=backbuffer glsl=disable This will configure Wine to use a different rendering method that is compatible with the NVIDIA drivers.

&/Or

b. Use a tool like Q4Wine to configure the Wine prefix and set the "UseRandR" option to "N" This will disable Wine's use of the RandR extension and use a fallback method instead.

That should fix it.

path: 0 9865955 9866424 9872102 9880043 9881474, hotness: undefined, score: 1, children: 1
john89 1 point 2 years ago

Nope.

path: 0 9909361, hotness: undefined, score: 1, children: 3
Im28xwa 1 point 2 years ago

The cold hard truth :'(

path: 0 9909361 9930385, hotness: undefined, score: 1, children: 2
john89 0 points 2 years ago

Sorry.

path: 0 9909361 9930385 9930393, hotness: undefined, score: 0, children: 1
Im28xwa 0 points 2 years ago

It's okay this is life after all.

path: 0 9909361 9930385 9930393 9950777, hotness: undefined, score: 0, children: 0
words_number 0 points 2 years ago

For a fair comparison you should at least use the same font and font size. Did you try that? It will still look different on windows, maybe better, but I think you can get pretty close. I use the "inter" font on debian xfce and it looks very clean (the font is probably in your repos as well).

path: 0 9870820, hotness: undefined, score: 0, children: 2
Im28xwa 0 points 2 years ago

the font is probably in your repos as well

Unfortunately it's not:(

path: 0 9870820 9889006, hotness: undefined, score: 0, children: 1
words_number 2 points 2 years ago path: 0 9870820 9889006 9950124, hotness: undefined, score: 2, children: 0
Suoko -2 points 2 years ago

Infinality used to fix that aspect but the project died. Did you try deepin Linux distro? If I remember correctly it could handle fonts better than all other distros

path: 0 9872443, hotness: undefined, score: -2, children: 0
linux
linux

@lemmy.ml

login for more options
65961
9047
4822

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

go to feed...