! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Limit font picker to fixed-size fonts
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description chrysn 2020-05-20 10:07:31 CEST
When picking a font in xfce4-terminal (tested with 0.8.9.2-1 as packaged in Debian), the font picker offers a selection of all fonts. On systems with lots of fonts available, it is very hard to pick a font, because all the fonts appear, and the GTK dialog does not give the user an option to narrow it down to fixed-width fonts.

I was just about to open an issue with GTK to pretty please add a way to narrow things down by font properties (as good ol' xfontsel could since the dawn of X) when I checked back with gnome-terminal and noticed that they do limit the options programmatically.

Unless the GTK dialogue grows the ability to do more than scrolling through endless pages and search by font name (where some but not all monospace fonts have a "mono" in their name), I think it would be a good choice to follow gnome-terminal's behavior and limit the dialogue's selection to fixed-width fonts.

Some useful pointers might be https://developer.gnome.org/gtk3/stable/GtkFontChooser.html#gtk-font-chooser-set-filter-func and https://developer.gnome.org/pango/stable/pango-Fonts.html#pango-font-family-is-monospace .
Comment 1 Git Bot editbugs 2020-05-22 17:41:46 CEST
Igor referenced this bugreport in commit db602eba3013a4d09f1e6db589189337b66e12c4

Limit font picker to fixed-size fonts

https://gitlab.xfce.org/apps/xfce4-terminal/commit/db602eba3013a4d09f1e6db589189337b66e12c4
Comment 2 Igor editbugs 2020-05-22 17:42:18 CEST
Thanks for the report! I've implemented the suggested change.

Bug #16870

Reported by:
chrysn
Reported on: 2020-05-20
Last modified on: 2020-05-22

People

CC List:
0 users

Version

Version:
0.8.9.2

Attachments

Additional information