News for hackers. Stuff that matters.
Re:Zed: The Fastest AI Code Editor by lordofgibbons on Wednesday May 07, 2025 @08:47AM (#43914949)
I really want to move off VS Code and start using Zed, but unfortunately the text is always extremely blurry. It's just unusable.

I check back on the GitHub issue every few months and it just has more votes and more supportive comments, but no acknowledgement.

Hopefully someone can rescue us from the sluggish VS Code.

https://github.com/zed-industries/zed/issues/7992

I have a 1440p monitor and seeing this issue.

Re:Zed: The Fastest AI Code Editor by AndrewDucker on Wednesday May 07, 2025 @09:26AM (#43915402)
Several replies saying that the issue is with the monitor. When the issue has an example showing Zed next to VS Code, and you can see that Zed is much blurrier: https://github.com/zed-industries/zed/assets/5507503/9883d38...
Re:Zed: The Fastest AI Code Editor by xpe on Wednesday May 07, 2025 @02:23PM (#43919041)
No issues on macOS for me on my MBP 16”. Probably the default resolution setting I think. What platform + resolution for you?
Re:Zed: The Fastest AI Code Editor by sapiogram on Wednesday May 07, 2025 @04:20PM (#43920195)
It's not an issue on high-DPI screens. Try again with an external monitor. It's much worse on light mode.
Re:Zed: The Fastest AI Code Editor by turnsout on Wednesday May 07, 2025 @02:48PM (#43919287)
Looks like you're trying to turn off antialiasing entirely, which is a bit niche
Re:Zed: The Fastest AI Code Editor by sapiogram on Wednesday May 07, 2025 @11:23AM (#43916913)
Thank you, I bring this up in every Zed thread on the internet, hopefully the devs will eventually fix it. Until they do, Zed is simply unusable on regular-DPI displays, at least in light mode. See these screenshots:

Example Zed screenshot, using "Ayu Light": https://i.ibb.co/Nr8SjvR/Screenshot-from-2024-07-28-13-11-10...

Same code in VS Code: https://i.ibb.co/YZfPXvZ/Screenshot-from-2024-07-28-13-13-41...

Re:Zed: The Fastest AI Code Editor by Geee on Wednesday May 07, 2025 @02:44PM (#43919253)
I don't see the difference except that the font is thinner in the Zed screenshot. Try with same font weight and color scheme.
Re:Zed: The Fastest AI Code Editor by WD-42 on Wednesday May 07, 2025 @04:56PM (#43920484)
Zed defaults to a font weight a little thin for my taste, increase it and it will probably solve your issue. I don’t see anything really wrong with the first screenshot, might just be a matter of what you are used to.
Re:Zed: The Fastest AI Code Editor by nyanpasu64 on Wednesday May 07, 2025 @09:30PM (#43922227)
I think it's a combination of using a Zed theme with insufficiently high text contrast, missing subpixel font rendering in Zed, and possibly more gamma correction and less stem darkening than you're used to.
Re:Zed: The Fastest AI Code Editor by karunamurti on Wednesday May 07, 2025 @11:03PM (#43922695)
Use the same font and increase the font weight.
Re:Zed: The Fastest AI Code Editor by Yizahi on Thursday May 08, 2025 @05:55AM (#43924680)
I'm wildly guessing here, but I remember that at some point in time macos had (and maybe has) this feature enabled by default which artificially makes pseudo-bold font out of regular font. That's why some websites have very thin and unreadable fonts, because they were tested only on macos. Maybe it's the same issue here? Looks kinda similar.

Setting on macos was called "use font smoothing when available".

Re:Zed: The Fastest AI Code Editor by sapiogram on Thursday May 08, 2025 @06:06AM (#43924739)
It's the exact same on Linux.
Re:Zed: The Fastest AI Code Editor by barrenko on Wednesday May 07, 2025 @09:10AM (#43915168)
Not sure if it's related, but I've built Zed from source to try on Windows (I haven't tried it on other platforms), and it does not look good sadly, it's also quite a bit "uncrisp" or something - I don't really have the words to describe.
Re:Zed: The Fastest AI Code Editor by testycool on Wednesday May 07, 2025 @02:11PM (#43918923)
Well said. "uncrisp" is how I'd describe it as well.
Re:Zed: The Fastest AI Code Editor by naikrovek on Wednesday May 07, 2025 @10:57AM (#43916579)
shrink the zed window by one pixel horizontally and one pixel vertically. there's a video on that issue page which shows resizing making the font go in and out of focus, and that tells me that there's something dividing the window height and width by 2 and starting the font rendering there. if you divide by 2 and you get .5, you'll see the blurriness. if you make the window 1 pixel wider you won't get x.5 anymore, you'll get a whole number.

try it and see. i bet that helps/fixes at least some of you suffering from this.

Re:Zed: The Fastest AI Code Editor by nyanpasu64 on Wednesday May 07, 2025 @09:33PM (#43922248)
This smells like a fractional DPI scaling issue.
Re:Zed: The Fastest AI Code Editor by naikrovek on Thursday May 08, 2025 @09:18PM (#43932972)
It can happen at any scaling, depending on how you anchor controls in the application window.

A text area anchored correctly to the top and left of the window would absolutely not move no matter how tall or wide the window is, and no display scaling setting would impact that.

Re:Zed: The Fastest AI Code Editor by jamil7 on Wednesday May 07, 2025 @09:00AM (#43915069)
> it just has more votes and more supportive comments, but no acknowledgement

It looks like the relevant work needs to be done upstream.

Re:Zed: The Fastest AI Code Editor by sapiogram on Wednesday May 07, 2025 @04:33PM (#43920286)
If that was true, it would be very nice if they just acknowledged that...

I don't know the internals of Zed well, but it seems entirely plausible they're doing text rendering from scratch.

Re:Zed: The Fastest AI Code Editor by askonomm on Wednesday May 07, 2025 @08:56AM (#43915035)
1440p monitor would probably be why the text is blurry - there simply isn't enough pixels to make things smooth without resorting to special hacks to improve LowDPI text rendering, which with more and more displays being HiDPI many don't bother doing.
Re:Zed: The Fastest AI Code Editor by hu3 on Wednesday May 07, 2025 @09:10AM (#43915166)
> many don't bother doing.

Apparently all editors bothered doing, except Zed.

From the Issue:

> Zed looks great on my MacBook screen, but looks bad when I dock to my 1080p monitor. No other editor has that problem for some reason.

Re:Zed: The Fastest AI Code Editor by krastanov on Wednesday May 07, 2025 @09:05AM (#43915113)
I am amazed people consider 1440p low resolution. My knee-jerk reaction was to assume you were sarcastic. I use a monitor of roughly that many lines of pixels and have never had observed blurry text in the tools I use (and I use fairly small fonts).
Re:Zed: The Fastest AI Code Editor by maleldil on Wednesday May 07, 2025 @09:18AM (#43915272)
How big is your screen? At 27", I can clearly see pixels on 1440p. A 4k display with 150% scaling (effectively 1440p) looks much better. Maybe you haven't used a higher resolution? If so, you might not know what you're missing.
Re:Zed: The Fastest AI Code Editor by krastanov on Wednesday May 07, 2025 @12:06PM (#43917458)
(cross-posting on both subthreads): I have native 1440p 120Hz on my main screen which is more than 30inches across (ultrawide). I can see pixels if I look close enough, but I do not see any pixels at usual reading distance.

I have used retina displays of various sizes -- but after a while I just set them down to half their resolution usually (i.e. I do not use the 200% scaling from the OS, rather set them to be 1440p (or lower on 13inch laptops)). I have not seen an advantage to retina displays.

Re:Zed: The Fastest AI Code Editor by skydhash on Wednesday May 07, 2025 @11:18AM (#43916849)
Not GP. But I have a 24" 4k (close to retina), the MBA screen and while they're nicer than the 27" 1440p I have, the latter is essentially worthless on macOS. With Linux, it's more than fine. Not super sharp, but quite readable. On macOS, the blurred text is headache inducing.
Re:Zed: The Fastest AI Code Editor by trevorhinesley on Wednesday May 07, 2025 @09:09AM (#43915157)
Are you using enlarged text or native 1440p? If the latter, have you used 4k or retina displays in the past? It’s hard to go back after that.
Re:Zed: The Fastest AI Code Editor by krastanov on Wednesday May 07, 2025 @12:05PM (#43917449)
I have native 1440p 120Hz on my main screen which is more than 30inches across (ultrawide). I can see pixels if I look close enough, but I do not see any pixels at usual reading distance.

I have used retina displays of various sizes -- but after a while I just set them down to half their resolution usually (i.e. I do not use the 200% scaling from the OS, rather set them to be 1440p (or lower on 13inch laptops)). I have not seen an advantage to retina displays.

Re:Zed: The Fastest AI Code Editor by thfuran on Wednesday May 07, 2025 @09:30AM (#43915449)
Look, you can insist that a 1440p monitor can only show blurry text all you like, but the problem that people are talking about is that the text is even blurrier than that.
Re:Zed: The Fastest AI Code Editor by trevorhinesley on Wednesday May 07, 2025 @11:26AM (#43916949)
I didn't insist that. Understood, but specifically, I was talking to the comment I replied to, which was about 1440p monitors in particular.
Re:Zed: The Fastest AI Code Editor by thfuran on Thursday May 08, 2025 @01:07PM (#43928403)
Ah, yeah. You aren't the person they replied to.
Re:Zed: The Fastest AI Code Editor by MonstraG on Wednesday May 07, 2025 @09:15AM (#43915225)
Native 1440p, never used retina nor 4k.

(not parent commenter, but hold same opinion)

Re:Zed: The Fastest AI Code Editor by silon42 on Wednesday May 07, 2025 @09:32AM (#43915467)
Same here... 1440p 32" is optimal for me, the only improvement I'd consider right now is 1600p equivalent.
Re:Zed: The Fastest AI Code Editor by AndroidKitKat on Wednesday May 07, 2025 @11:21AM (#43916891)
Biggest draw for me with 1440p 32" is being the same DPI as a 1080p 24". I like to have one big monitor and then 2 small flank vertical monitors and having them all be the same DPI just makes headaches go away on every operating system I use them with.
Re:Zed: The Fastest AI Code Editor by johnisgood on Wednesday May 07, 2025 @12:57PM (#43918075)
Damn. I am so happy with my old 17" monitor and 1280x1024 resolution here. :D
Re:Zed: The Fastest AI Code Editor by EnPissant on Wednesday May 07, 2025 @07:31PM (#43921544)
Text on 1440p looks great with full hinting and subpixel rendering. Unfortunately, macOS does neither, so the jump to retina feels more significant than it is.
Re:Zed: The Fastest AI Code Editor by askonomm on Wednesday May 07, 2025 @11:49AM (#43917257)
I mean the last time I saw anyone have a 1440p display was back in the early 2010's, so ... nowadays most people that I know buy 4k 27"/32" displays at minimum, with 5k displays gaining popularity as the price for them goes down. Macbooks for example come with a very high resolution display, and so do most high-end PC laptops, too.
Re:Zed: The Fastest AI Code Editor by Xiol32 on Wednesday May 07, 2025 @01:11PM (#43918244)
Great sample size
Re:Zed: The Fastest AI Code Editor by sapiogram on Wednesday May 07, 2025 @04:37PM (#43920323)
Yes yes, all your friends are rich, good for you.
Re:Zed: The Fastest AI Code Editor by askonomm on Wednesday May 07, 2025 @07:37PM (#43921569)
4k displays are available at just a few hundred bucks these days, I'd hardly call that being rich.
Re:Zed: The Fastest AI Code Editor by sapiogram on Thursday May 08, 2025 @03:45AM (#43924007)
That was absolutely not true in the "early 2010s", not even 5 years ago unless you wanted to seriously compromise on some other aspect of the display.
Re:Zed: The Fastest AI Code Editor by askonomm on Thursday May 08, 2025 @03:51PM (#43930590)
I did not say people used 4k displays in early 2010s en masse, I said that's when I last saw people use 1440p displays. I live in present time, and in present time 4k displays are very cheap. It gets a little more pricey if you want high refresh rate as well, though my 4k 144hz display was just around 400 EUR, which I would consider a lower-mid-tier price range.
Re:Zed: The Fastest AI Code Editor by krastanov on Thursday May 08, 2025 @07:58AM (#43925287)
You are misremembering things. Macbooks in early 2010 had only 800 rows of pixels: https://support.apple.com/en-us/111958
Re:Zed: The Fastest AI Code Editor by spookie on Wednesday May 07, 2025 @10:04AM (#43915865)
1440p is high enough for anything depending on screen size.

If they're running everything on the GPU then their SDF text rendering needs more work to be resolution independent. I'm assuming they use SDFs, or some variant of that.

Really, the screen isn't the issue given that on other editors OP says it is fine.

Knuth would be angry reading this :)

Re:Zed: The Fastest AI Code Editor by lordofgibbons on Wednesday May 07, 2025 @09:22AM (#43915333)
Literally every other editor and application besides Zed seem to be working just fine.
Re:Zed: The Fastest AI Code Editor by dismalaf on Wednesday May 07, 2025 @02:15PM (#43918963)
Lol so many people use 1440p, 1660p, even 1080p or 720p and have perfectly crisp text across many programs. If Zed can't figure it out that's on them.
Re:Zed: The Fastest AI Code Editor by poly2it on Wednesday May 07, 2025 @04:15PM (#43920161)
I've never owned anything beyond 1080p. I've never had issues reading text on them, although the graphical quality could be better.
Re:Zed: The Fastest AI Code Editor by nurumaik on Wednesday May 07, 2025 @04:49PM (#43920426)
I remember coding on 640x480 monitor long ago and having no issues with text rendering
Re:Zed: The Fastest AI Code Editor by kubik369 on Wednesday May 07, 2025 @09:19AM (#43915275)
If you are using MacOS, unfortunately, your issue is that you are using a 1440p monitor, not an issue with any one program.

Apple has removed support for font rendering methods which make text on non-integer scaled screens look sharper. As a result, if you want to use your screen without blurry text, you have to use 1080p (1x), 4k (2x 1080p), 5k (2x 1440p) or 6k screens (or any other screens where integer scaling looks ok).

To see the difference, try connecting a Windows/Linux machine to your monitor and comparing how text looks compared to the same screen with a MacOS device.

Re:Zed: The Fastest AI Code Editor by lordofgibbons on Wednesday May 07, 2025 @09:23AM (#43915360)
I'm on Linux (Ubuntu) and haven't had this blurry font issue with any other application that I've installed over the years.
Re:Zed: The Fastest AI Code Editor by dvtkrlbs on Wednesday May 07, 2025 @09:52AM (#43915710)
Yeah the reason is Linux is supporting non integer scaling. Apple stubbornly doesn't
Re:Zed: The Fastest AI Code Editor by sapiogram on Wednesday May 07, 2025 @04:42PM (#43920361)
This issue happens without any scaling at all, on both Linux and MacOS.
Re:Zed: The Fastest AI Code Editor by sapiogram on Wednesday May 07, 2025 @11:20AM (#43916877)
This comment is incorrect, I have tried the editor on both MacOS and Linux, and texts looks like crap on both if you're using your screen at its native resolution. The difference is easily visible in screenshots.

Example Zed screenshot, using "Ayu Light": https://i.ibb.co/Nr8SjvR/Screenshot-from-2024-07-28-13-11-10...

Same code in VS Code: https://i.ibb.co/YZfPXvZ/Screenshot-from-2024-07-28-13-13-41...

Re:Zed: The Fastest AI Code Editor by sroussey on Wednesday May 07, 2025 @11:43AM (#43917185)
Looks like anti-aliasing on a hi-dpi monitor which you shouldn't do.
Re:Zed: The Fastest AI Code Editor by sapiogram on Wednesday May 07, 2025 @04:38PM (#43920336)
It's not, the font renderer just sucks outside of high-DPI displays.
Re:Zed: The Fastest AI Code Editor by freehorse on Thursday May 08, 2025 @01:14PM (#43928501)
It looks ok to me, definitely not blurred. If you do not like it so thin you can increase the font weight or change the theme?
Re:Zed: The Fastest AI Code Editor by naikrovek on Wednesday May 07, 2025 @11:09AM (#43916728)
native resolution on any monitor should work fine on MacOS.

using pixel fonts on any non-integer multiplier of the native resolution will always result in horrible font rendering, I don't care what OS you're on.

I use MacOS on all kinds of displays as I move throughout the day, some of them are 1x, some are 2x, and some are somewhere in between. using a vector font in Zed looks fine on all of them. It did not look fine when I used a pixel font that I created for myself, but that's how pixel fonts work, not the fault of MacOS.

Re:Zed: The Fastest AI Code Editor by EnPissant on Wednesday May 07, 2025 @07:19PM (#43921471)
macOS fonts subjectively look terrible and objectively look blurry on normal resolution monitors because:

1) No hinting

2) No subpixel rendering

Re:Zed: The Fastest AI Code Editor by naikrovek on Saturday May 17, 2025 @10:55PM (#44018655)
Both hinting and subpixel rendering are things on MacOS. MacOS just doesn’t color the pixel for LCDs like Windows does, because the GUI on MacOS is resolution independent.

It is greyscale font rendering, yes, but it is coloring those pixels based on subpixel information.

Re:Zed: The Fastest AI Code Editor by jojohohanon on Wednesday May 07, 2025 @04:58PM (#43920498)
Does your monitor have a nonstandard rgb pattern? If zed is trying to do its own subpixel rendering then getting the pattern wrong is going to mess up your results.

(Or are you using it in vertical orientation?)

Re:Zed: The Fastest AI Code Editor by EnPissant on Wednesday May 07, 2025 @07:13PM (#43921434)
I tried zed and experienced the same thing (also 1440p), so now I don't use it.

I have the same issue with macOS in general, and I don't understand how anyone can use it on a normal DPI monitor.

I'm guessing zed implemented their own text rendering without either hinting or subpixel rendering or both.

Re:Zed: The Fastest AI Code Editor by ivanche on Thursday May 08, 2025 @12:12PM (#43927634)
MacOS looks nice on either ~110dpi or ~220dpi monitor. Anything else and you get a blurry picture.
Re:Zed: The Fastest AI Code Editor by freehorse on Thursday May 08, 2025 @01:11PM (#43928462)
Everything, including zed, looks fine in the 95dpi (1080p 23") monitor I use right now with my macbook.

I have had similar blurring problems with a certain monitor (1920x1200 27"), which was resolved with changing some sharpening settings in the monitor itself. Strangely, that setting did not look well at my colleague's macbook, who was also often using that monitor, while the original settings looked fine, so we had to change the settings back and forth every time the other person had to use it. I do not think I was using zed at the time, other apps had that issue.

Re:Zed: The Fastest AI Code Editor by EnPissant on Thursday May 08, 2025 @03:37PM (#43930436)
While "nice" is subjective, macOS is objectively blurrier on a ~110dpi monitor than on Windows or Linux.

This is because macOS does not support subpixel rendering or hinting.

Re:Zed: The Fastest AI Code Editor by johnnypangs on Wednesday May 07, 2025 @11:35PM (#43922849)
Shout out to Better Display, I find it helps with Lo DPI blurriness in general on macOS

https://github.com/waydabber/BetterDisplay

Re:Zed: The Fastest AI Code Editor by dotancohen on Thursday May 08, 2025 @01:06AM (#43923227)
From the Zed homepage:

  > The entire Zed code editor is open source under GPL version 3, and scratch-built in Rust all the way down to handcrafted GPU shaders and OS graphics API calls.
When I saw this, I immediately wondered what strange rendering bugs Zim might run into. This was before reading your comment.

In my opinion, this type of graphics work is not the core functionality of a text editor, same has been solved already in libraries. There is no reason to reinvent that wheel... Or if there is then please mention why.

Re:Zed: The Fastest AI Code Editor by JonGretarB on Thursday May 08, 2025 @05:38PM (#43931621)
Most likely there were no ready libraries when they started. Even now there are very few that can be called stable. And even then many of them are HTML based. So if you are going to spend that much time developing GUI from scratch you might as well make it your own library and get full control.
Re:Zed: The Fastest AI Code Editor by hamandcheese on Thursday May 08, 2025 @07:34PM (#43932410)
> In my opinion, this type of graphics work is not the core functionality of a text editor, same has been solved already in libraries.

In a world full of electron based apps, I appreciate anyone who dares to do things differently.