You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by hpfr December 28, 2024
In GNOME Settings, under Accessibility/Seeing, there is a Large Text toggle. Under the hood, this sets org.gnome.desktop.interface text-scaling-factor to 1.25. GTK respects this, so the title bar and context menus look correct, but the terminal emulator text itself does not.
VTE apparently respects this via Pango. For a “native” experience on GNOME, Ghostty probably should too. If Pango isn’t used, reading the key via GSettings might be the way to go.
The text was updated successfully, but these errors were encountered:
Thanks Mitchell. Recommend browsing the discussion if you want to work on this, I think Pango was a bit of a red herring and GSettings or maybe gtk-xft-dpi is the way to go.
Also, we can't look at libvte source because it's GPL. So, knowing how they do it conceptually from someone who has looked at it is fine, but actually copying their implementation is not. So anyone working on this must figure this out for themselves (or use MIT-compatible licenses).
Commit ad503b8 ("linux: consider Xft.dpi to scale the content")
introduced reading gtk-xft-dpi when the X11 build option is enabled.
While the name suggests it is X11-specific (perhaps it was at one
point), gtk-xft-dpi is a GTK setting that can be modified regardless of
GDK backend. GNOME’s Large Text accessibility setting ultimately
modifies it. Outside of desktop environments, it can be set via GTK
configuration files.
Remove the conditional gating the code on X11, since none of the code is
actually X11-specific. While we’re here, document scaling behaviors
under Config.font-size.
Fixes: ad503b8 ("linux: consider Xft.dpi to scale the content")
Fixes: #4338
Link: https://docs.gtk.org/gtk4/class.Settings.html
Link: https://docs.gtk.org/gtk4/property.Settings.gtk-xft-dpi.html
Discussed in #3771
Originally posted by hpfr December 28, 2024
In GNOME Settings, under Accessibility/Seeing, there is a Large Text toggle. Under the hood, this sets
org.gnome.desktop.interface text-scaling-factor
to1.25
. GTK respects this, so the title bar and context menus look correct, but the terminal emulator text itself does not.VTE apparently respects this via Pango. For a “native” experience on GNOME, Ghostty probably should too. If Pango isn’t used, reading the key via GSettings might be the way to go.
The text was updated successfully, but these errors were encountered: