Attached is a patch to add the standard GTK font-selection dialog for picking the font family name.
It works OK, but not great: To change a font family parameter (in the Text layer), you can hereby either edit the family name manually (as currently), or click on a small button to display the Font Selection Dialog (attached screenshot). I disabled the widgets that do not define the font family name (size, weight, type) because
- I could not find a way to adapt multiple values (ie to change size, weight, style and family name, when the “current” value being modified is only the family name)
- the possible values for weight & type are not the same in Pango (where eg normal is sometimes called regular) and Synfig (where eg: ultra bold exists), and same for size (Pango is in pt, Synfig is in [X,Y])
Shall I leave it as is? (easier to me… but the user may wonder why (s)he’s not allowed to pick another style and size in the dialog)
Or shall I create a new type of dialog that only displays the list of family and preview widgets? Or is there a way to completely hide the useless widgets (and their label) from this GtkFontSelectionDialog, and adapt its width accordingly?
Thanks for your help.
font-selection-dialog.patch.txt (16.6 KB)