zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.23k stars 2.98k forks source link

ui_font_size and buffer_font_size are different scales #19190

Open a-non-a-mouse opened 2 weeks ago

a-non-a-mouse commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

ui_font_size is significantly smaller than buffer_font_size at the same font size.

Environment

Zed: v0.156.1 (Zed) OS: macOS 15.0.0 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your Zed.log file to this issue.

N/A

osa1 commented 2 weeks ago

Could this be because the fonts are different?

a-non-a-mouse commented 2 weeks ago

Nope, that makes it worse, lol

image
notpeter commented 2 weeks ago

You likely need to reset your zoom. (cmd-0). When I set my {buffer,ui}_font_{family,size} to the same values they are the same size for me.

Screenshot 2024-10-16 at 10 13 49
a-non-a-mouse commented 2 weeks ago

Tried that already. I can zoom in, then hit cmd+0 and it goes back to my screenshot.

"ui_font_size": 16,
"buffer_font_size": 13,

results in roughly the same size text for me.

notpeter commented 2 weeks ago

I can reproduce with:

  "buffer_font_size": 16,
  "buffer_font_family": "IBM Plex Mono",
  "ui_font_size": 16,
  "ui_font_family": "IBM Plex Mono",
Screenshot 2024-10-16 at 10 27 49

same-font2

The vertical container appears the same size (because otherwise they wouldn't vertically line up) but the font glyphs themselves are clearly rendered slightly smaller for the project panel.

juliangarnier commented 6 days ago

I also have this issue, here is a screenshot showcasing 3 different font sizes, even if I defined the same font size / font family everywhere: font-sizes The status bar also seems to inherit the same (smallest) font size like the title bar.