by moth-fuzz · 4y ago · 0 comments
Of course you can always run dwm on linux with a hodgepodge of makeshift utility apps, write your own keybinds to set your brightness and volume and other such inanities, but in order to get a 'complete' desktop experience you kinda have to opt-in to GNOME/KDE which are trying to do the same things as Apple or Microsoft, aesthetically speaking. And tough luck if you actually use Apple or Microsoft to begin with. I tried running bug.n and it seems to not work in win10, let alone win11.
That makes no sense. Bitmaps have a fixed pixel density while vectors are infinitely scalable.
Obviously it's not an apples-to-apples comparison, but decades ago bitmapped fonts could give you crisp text on any monitor, and in 2022 I'm using a popular, >$1300, very favorably reviewed monitor, and the text is ever-so-slightly fuzzy. It's plugged into my Macbook Pro right now, and the difference in how well the text renders on the two displays is plain.
I guess as soon as Apple started making laptops with 300dpi screens, it became okay to render fuzzy text on any screen that wasn't 300dpi.
This results in less crisp output than you would get if you actually rendered vector based UI at the exact monitor resolution or if you natively rendered bitmap art 1:1 with the monitor resolution.
This approach makes sense when you're only using Apples monitors because they can optimize their internal "native" resolutions for the handful of actual native resolutions they offer, but it falls apart when you start plugging in external third party lower dpi monitors.
(I believe this is also the same approach that Gnome 3 uses to do (experimental, with a toggle) non integer multiple UI scaling.)
And I had that Dell's first 24" 4K screen that required DP MST to go past 30Hz. I've tried disabling subpixel rendering to see if that resolution was really sufficient (185dpi) but you could then see text regain jagged edges. Thus I reasoned that, with my glasses correcting my myopia to better than 20/20, I needed to wait a while until I can fully enjoy nice, laser-printout-like text.
As a reminder, even laser printers printing at 600dpi use techniques similar to subpixel rendering to render that smooth text.
I am hoping for some 8K screens at 32" for productivity work (though that's still probably too low at 275 dpi), and I never get it why people keep talking about there not being any 8K content. My desktop is my 8K content, though I also lack the GPU to drive it at more than 30Hz :)
https://en.wikipedia.org/wiki/HDMI#Refresh_frequency_limits_...
Some programs let you use pixel-perfect fonts, even today. For example, in iterm2 I do "Profiles > Text > Monaco Regular 10pt non-antialiased"
Whatever setup was there on Ubuntu 20.04 which made text render clearly needs to come back (I used to use slight hinting setting, but it seems subpixel rendering is going away on Linux too). Please!
Switch to the X session on the login screen and you should have good scaling again (also, lots of applications that do screen sharing, like Zoom, do not work on Wayland [5]). Or just be like me and use Mint, which has no plans for Wayland support and you don't have to think about any of this.
[0]: https://www.omgubuntu.co.uk/2021/01/ubuntu-21-04-will-use-wa...
[1]: https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-2...
[2]: https://www.reddit.com/r/kde/comments/lficfe/wayland_fractio...
[3]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/i...
[4]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/m...
[5]: https://community.zoom.com/t5/Meetings/Wayland-screen-sharin...
Linux & Windows generally use implementations of antialiasing that aren't so "fuzzy," so you could always ditch that Mac for something that won't forcibly abstract away the details for you
macOS is really limited when in comes to displays, because the display must have a PPI of around 110, or a multiple of that. It sucks how bad macOS is at scaling, especially with the terrible font rendering.
The world in which we now live allows for a lot more crispness when it matters (because the pixel density approaches indistinguishable-by-the-human-eye-at-viewing-distance), but with the tradeoff that UIs designed to work at whatever scale on whatever monitor with whatever DPI do a lot of aliasing, and things tend to look, sometimes, just a tad muddier. Especially when vectorized icons get drawn in a rendering pipe that passes through the graphics accelerator.
The alternative is that you convert the vector line with a "nearest neighbour" pixel algorithm (or cleverer but fundamentally similar algorithms e.g. [1]) but then you get the aliasing artefacts that anti-aliasing is meant to avoid. For example, two parallel lines that are rendered 2.5 pixels apart might end up having a gap between them that alternates between 1 and 2 pixels along its length, which looks even worse.
[1] https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
With hand-designed pixel graphics, this isn't a problem because you can manually choose to draw everything an integer number of pixels apart or avoid certain constructions altogether.
I don't think "Vector vs bitmap" is necessarily the cause - more of design sensibility. When I look at the lineup of google apps on my phone which all look EXACTLY the same (3 primary colours in random rotation; I can only effectively use / distinguish them if I memorize location of icon), and then the same as slack and my son's daycare app which also use swirls of same 3 primary colours; and when I compare my Windows desktop and icons and browsers to old apps - there's a definite brutal sharpness to old stuff.
Buy a retina mac ;)
I kid but only partly. Running at integer (2x) scaling on a 200 dpi screen makes everything perfectly crisp. Anti-aliased text no longer appears blurry and lines are rendered at exact pixel boundaries.
Those old bitmap art displays didn’t do any scaling. Every pixel appeared exactly as someone drew it, with crisp boundaries. It’s the scalable part of vector graphics that fuzzes things up.
If you really want you can also tweak some settings to totally disable antialiasing and switch to bitmap font rendering. On modern semi-high DPI displays (like a 14" 1920x1080 panel) it isn't that great though as most bitmap fonts are far too small to be readable (~8-12 pixels tall). For the most crisp and clear text, even crisper than old bitmap stuff, you really want a high DPI display in the 4k+ range. Try using a modern mac and you will be blown away at how clear and sharp the text renders.
In my experience, basically every window manager has some 90s-esque style as well.
[0] There's more information buried in here: https://wiki.archlinux.org/title/Font_configuration
Use a high-DPI screen, for starters.
All of these issues really boil down to render resolution not integer scaling to the display resolution.
If the render resolution is an integer multiple of the display resolution or vice versa, you will generally always get beautiful crisp rendering - this is exactly the approach Apple adopted, and is why they had to use some slightly less common resolutions like 5k on some devices - 2560x1440/"QHD" has integer scaling factor of exactly 2 for a 5k display etc.
The problem though is that outside of Apple devices, almost no hiDPI display will neatly integer sale. The vast majority of Hi-DPI monitors on sale today are 4k, and only 1080p really has a useable integer scaling factor there. 1080p of "useable" screen real estate on a 4k monitor is going to make all UI elements too big usually though... So you are forced to non-integer scaling and images that will not cleanly map to the grid of pixels in the monitor, which is where the fuzz and anti-aliasing etc starts... 1440p of "usable" space does not cleanly map to a 4k monitor, but many people run them this way.
5k is frankly a brilliant resolution for high quality ~200ppi style HiDPI rendering on 27 inch displays with 2x integer scaling for macOS and Windows especially, its tragic the resolution hasn't become more mainstream.
Step one plug in 4K 27" monitor.
Step two set scaling factor for gtk/java apps to 2. KDE/QT apps can figure out the correct DPI without hassle.
Step three set fonts smaller or larger if desired.
On Windows plug in 4K 27" monitor. Text doesn't look in my opinion quite as nice as Linux but it isn't fuzzy, small, or giant. Possibly font rendering could look nicer if I bothered to tweak it but since its basically boot to steam I see little reason to bother.
I keep hearing this argument that 4K somehow doesn't work or looks shitty and only 5K Mac displays provide an acceptable high dpi experience and I feel like I'm getting transmissions from an alternate universe where nobody had to scale UIs from screens that varied in DPI by a factor of 3 for almost 20 years. Long before 4K screens.
There as it turns out are other ways to scale a UI other than integer scaling factors. Even if you don't use svg you can use different image sizes and scale fonts by smaller increments yet.
You describe their being 1080p of usable real estate which is a complete failure to use a meaningful unit of measure. Your 5K display, future 8k displays etc use more pixels to draw a button 3cm x 1 cm. They aren't wasting increasing number of pixels they are drawing the element with increasing fidelity. If we measured screen real estate in pixels one would conclude that a 5" screen and a 32" screen both drawn in 1080p have equal screen real estate. This is a clearly incorrect conclusion. Clearly screen real estate is measured in area with fidelity not real estate measured in DPI.
Increasing fidelity might bear on the smallest element one can possibly usefully use but its not going to bear as much on what size element people desire to use which has much more to do with how far the object is from a users face.
You are saying that 4K monitors require one to choose between giant elements that somehow waste all the pixels or exceptionally tiny ones. This is silly. First off 108Op displays that range from 12" - 32" already had to adjust elements to be usable even before 4K became a thing and there were already more knobs than scaling factor to achieve the same end result. 4K changed the existing equation that has existed for 20 years by an exact factor of 2. 8k changes it by an exact factor of 4.
TLDR: Set an integer scaling factor then tweaking your fonts a little bigger or a little smaller until it looks nice according to your taste. Nobody on earth expected a 24" 4K monitor to display twice as much content as a 1080p 24" monitor because they want things to be the same size on the screen only prettier.
The Mac is definitely fuzzier than Elementary; that clarity is the main thing I miss. It seems pretty obvious that modern MacOS is designed for high DPI displays.
try XFCE, it works.
i3wm = tiling window manager lxappearance = set gtk theme and settings qt5ct = set qt5 theme and settings kvantum more settings for qt ponymix cli for pulseaudio that sucks less than pactl pavucontrol gui mixer nm-applet tray applet that lets you select a different network i3status-rust nicer and more powerful status line for i3bar rofi a launcher that looks like nice and is more powerful
To this add all the other apps you already use.
The thing about this hodgepodge is that there really isn't much to be said about integration as the different components don't require or benefit from such. The connection between such are so bare direct and obvious that there isn't much of a question how to put it together. You change a line in your i3 config to start a different app at startup or trigger a different one with a keybinding.
If you had done so 5 years ago you could be using much the same configuration now and much the same configuration 5 years hence. I guarantee you that whether you use KDE or Gnome or Windows you are liable to spend a day here or there tweaking your environment even if Bob in accounting doesn't.
Are you being intentionally disingenuous? It is objectively not a pretty UI, it's a functional but quite ugly one.
"beauty is in the eye of the beholder"
This is so true and that's why I deep inside mourn the end of this UI era.