## gimpfontmenu

gimpfontmenu — A widget for selecting fonts.

## Synopsis

    GtkWidget *         gimp_font_select_widget_new         (const gchar *title,
                                                             const gchar *font_name,
                                                             GimpRunFontCallback callback,
                                                             gpointer data);
    void                gimp_font_select_widget_close       (GtkWidget *widget);
    void                gimp_font_select_widget_set         (GtkWidget *widget,
                                                             const gchar *font_name);

## Description

A widget for selecting fonts.

## Details

### gimp_font_select_widget_new ()

    GtkWidget *         gimp_font_select_widget_new         (const gchar *title,
                                                             const gchar *font_name,
                                                             GimpRunFontCallback callback,
                                                             gpointer data);

### Warning

`gimp_font_select_widget_new` is deprecated and should not be used in newly-written code.

Creates a new GtkWidget that completely controls the selection of a font. This widget is suitable for placement in a table in a plug-in dialog.

`title` : | Title of the dialog to use or `NULL` to use the default title.
`font_name` : | Initial font name.
`callback` : | A function to call when the selected font changes.
`data` : | A pointer to arbitary data to be used in the call to `callback`.
Returns : | A GtkWidget that you can use in your UI.

### gimp_font_select_widget_close ()

    void                gimp_font_select_widget_close       (GtkWidget *widget);

### Warning

`gimp_font_select_widget_close` is deprecated and should not be used in newly-written code.

Closes the popup window associated with `widget`.

`widget` : | A font select widget.

### gimp_font_select_widget_set ()

    void                gimp_font_select_widget_set         (GtkWidget *widget,
                                                             const gchar *font_name);

### Warning

`gimp_font_select_widget_set` is deprecated and should not be used in newly-written code.

Sets the current font for the font select widget. Calls the callback function if one was supplied in the call to `gimp_font_select_widget_new()`.

`widget` : | A font select widget.
`font_name` : | Font name to set; `NULL` means no change.