GTKFontSelection

Hi, ALL,

Since GTK 4.10 we should use this to select a font.

However there is no screenshot on that page in the docs.

And a second question which is kind of related.

In GTK 3.x there was a font selection panel, which one could embed into the notebook, for example and make it look like font selection property among many others.

My understanding is that this interface is gone in 4.10 and so I have to use just a “font picker”, which is just a button.

Is this true?

Thank you.

Because, just like for file selection and printing, we reserve the right to use a native font selection dialog, if one exists. Currently, the font selection dialog used is the same as GtkFontChooserDialog.

Yes.

You can still use deprecated API: it’ll only matter if (and when) you decide to port your code to GTK5.

@ebassi ,

For the first part:

I’m comparing the docs with the GTK3 and merely point out an inconsistency.

For the second part:

Anyway to restore the panel interface? The option selection will look weird with just font selection button instead of the full blown panel…

Thank you.

No.

If you want to have a selection panel, you’ll have to write your own widget.

@ebassi ,

Am I going to be in a license violation if I copy the font dialog code?

Thank you.

Only if you release your code as anything other than (L)GPL-2.0-or-later.

@ebassi ,

Understood, thx.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.