-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI and buffer fonts vary in size #4292
Comments
One thing to note is that the So I think this may be working as intended. |
Closing this out, as the font sizes are working as intended. |
Just noticed this myself. I think setting them equal should at least make the file tree have the same font size as the buffer. That's the biggest eye sore for me, that the file tree font isn't the same size as the buffer. |
In fact, I can't seem to find any UI text that is of the same font size as the buffer, when setting them equal. I get that there is a base, and that some UI would need to have a smaller/bigger size, but in this case it seems everything is different (smaller) than base. |
Came here to report this. How is this closed? It is clearly not working as intended. Out of the box, the code font size looks to be almost double the UI font size. I went to change this in settings, and they are both set exactly the same: 16 pt. The UI is clearly not 16pt. I couldn't find any UI text that is 16 pt. It looks about 13 pt. |
I also think this should not be closed. I can confirm the UI font & buffer font sizes don't appear to follow the same font scaling. I use pixel perfect fonts throughout my system. I can get a pixel perfect look with both "Departure Mono" & "Terminess Nerd Font Mono" on the buffer. On the UI however, the fonts appear to be about 87.3% the size of the buffer's font. This was found by incrementally changing the font size until the fonts finally fell into pixel perfect alignment. This was set with I'm not using any scaling on my OS. Regardless, if I were using scaling on my OS, the buffer & UI font sizes should still scale together. |
zed/crates/ui_input/src/ui_input.rs Line 127 in c86cf2c
This might not specifically be it. But I see that 0.875 is referenced quite a bit. When I changed the font size to In many applications I see it a lot where the choice of font size with UI is given to us in pt/px format, but it's essentially overridden by various UI elements that scale fonts for various reasons (headings, titles, context menus, etc.). IMO the For now applying the Hope this helps someone! |
Check for existing issues
Describe the bug / provide steps to reproduce it
A user reported that having identical settings between UI and buffer fonts (size and family) resulted in text of different sizes.
Environment
Zed: v0.119.2 (Zed Preview)
OS: macOS 14.1.2
Memory: 64 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.No response
The text was updated successfully, but these errors were encountered: