JetBrainsMono font renders taller (or shorter) on specific font sizes. #3515
-
Greetings, and thanks for developing ghostty! I am interested in migrating from Gnome Terminal, and I noticed a really weird issue with the On the left is Gnome Terminal, on the right is ghostty, both of which are set to have font-size of Here is a comparison graphic and a video I made to better demonstrate the differences. All the screenshots were taken after doing a full system reboot whenever I was changing the compare.mp4At first I thought this might be an issue with the patched version of JetBrainsMono Nerd Font I was using, so I went ahead and downloaded the original unpatched version, but the problem was still there. Additionally, I tried adjusting It goes without saying that this isn't some critical or breaking issue, and since ghostty just launched yesterday, there are probably more important things to take care of. Nevertheless, if someone knows what might be causing this and how to fix it, I would love to know. Cheers! Here is all the relevant configuration and information I could find. I tested in VM for this issue but was having the same problem on my desktop OS. font-family=JetBrains Mono
font-style=Regular
font-size=22
# or 10/11/12/13/14/15/16
theme=catppuccin-macchiato Ghostty 1.0.1-dev+0000000
Version
- version: 1.0.1-dev+0000000
- channel: tip
Build Config
- Zig version: 0.13.0
- build mode : builtin.OptimizeMode.ReleaseFast
- app runtime: apprt.Runtime.gtk
- font engine: font.main.Backend.fontconfig_freetype
- renderer : renderer.OpenGL
- libxev : main.Backend.io_uring
- GTK version:
build : 4.14.2
runtime : 4.14.2
- libadwaita : enabled
build : 1.5.0
runtime : 1.5.0 > ghostty +list-fonts | grep JetBrains
JetBrains Mono
JetBrains Mono Bold
JetBrains Mono Bold Italic
JetBrains Mono ExtraBold
JetBrains Mono ExtraBold Italic
JetBrains Mono ExtraLight
JetBrains Mono ExtraLight Italic
JetBrains Mono Italic
JetBrains Mono Light
JetBrains Mono Light Italic
JetBrains Mono Medium
JetBrains Mono Medium Italic
JetBrains Mono Regular
JetBrains Mono SemiBold
JetBrains Mono SemiBold Italic
JetBrains Mono Thin
JetBrains Mono Thin Italic
> fc-list | grep JetBrains
/home/decho/.fonts/JetBrainsMono-SemiBoldItalic.ttf: JetBrains Mono,JetBrains Mono SemiBold:style=SemiBold Italic,Italic
/home/decho/.fonts/JetBrainsMono-ExtraBold.ttf: JetBrains Mono,JetBrains Mono ExtraBold:style=ExtraBold,Regular
/home/decho/.fonts/JetBrainsMono-ExtraLightItalic.ttf: JetBrains Mono,JetBrains Mono ExtraLight:style=ExtraLight Italic,Italic
/home/decho/.fonts/JetBrainsMono-Light.ttf: JetBrains Mono,JetBrains Mono Light:style=Light,Regular
/home/decho/.fonts/JetBrainsMono-Regular.ttf: JetBrains Mono:style=Regular
/home/decho/.fonts/JetBrainsMono-SemiBold.ttf: JetBrains Mono,JetBrains Mono SemiBold:style=SemiBold,Regular
/home/decho/.fonts/JetBrainsMono-Medium.ttf: JetBrains Mono,JetBrains Mono Medium:style=Medium,Regular
/home/decho/.fonts/JetBrainsMono-LightItalic.ttf: JetBrains Mono,JetBrains Mono Light:style=Light Italic,Italic
/home/decho/.fonts/JetBrainsMono-ExtraLight.ttf: JetBrains Mono,JetBrains Mono ExtraLight:style=ExtraLight,Regular
/home/decho/.fonts/JetBrainsMono-Italic.ttf: JetBrains Mono:style=Italic
/home/decho/.fonts/JetBrainsMono-Bold.ttf: JetBrains Mono:style=Bold
/home/decho/.fonts/JetBrainsMono-Thin.ttf: JetBrains Mono,JetBrains Mono Thin:style=Thin,Regular
/home/decho/.fonts/JetBrainsMono-BoldItalic.ttf: JetBrains Mono:style=Bold Italic
/home/decho/.fonts/JetBrainsMono-ExtraBoldItalic.ttf: JetBrains Mono,JetBrains Mono ExtraBold:style=ExtraBold Italic,Italic
/home/decho/.fonts/JetBrainsMono-ThinItalic.ttf: JetBrains Mono,JetBrains Mono Thin:style=Thin Italic,Italic
/home/decho/.fonts/JetBrainsMono-MediumItalic.ttf: JetBrains Mono,JetBrains Mono Medium:style=Medium Italic,Italic
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Convert to discussion for issue triage. |
Beta Was this translation helpful? Give feedback.
-
This is due to |
Beta Was this translation helpful? Give feedback.
-
Not sure if it's related but I've noticed that fonts render fractionally less tall at 14pt than Wezterm and Gnome-terminal. Using JetBrainsMono, cell width and cell/line height are the same, but the text is slightly squashed. With a block cursor, the cursor size is the same as other terminals, but there is a little more padding at the top. It's most visible on letter 'F' (both cases). Arch, Cinnamon desktop |
Beta Was this translation helpful? Give feedback.
This is due to
gnome-terminal
not forcing the autohinter, it should be identical withfreetype-load-flags = no-force-autohint
.