gimpfontselect 3 LIBGIMP Library
gimpfontselect Functions providing a font selection dialog.

## Synopsis

    void        (*GimpRunFontCallback)          (const gchar *font_name,
                                                 gboolean dialog_closing,
                                                 gpointer user_data);
    const gchar* gimp_font_select_new           (const gchar *title,
                                                 const gchar *font_name,
                                                 GimpRunFontCallback callback,
                                                 gpointer data);
    void        gimp_font_select_destroy        (const gchar *font_callback);
    gboolean    gimp_fonts_popup                (const gchar *font_callback,
                                                 const gchar *popup_title,
                                                 const gchar *initial_font);
    gboolean    gimp_fonts_close_popup          (const gchar *font_callback);
    gboolean    gimp_fonts_set_popup            (const gchar *font_callback,
                                                 const gchar *font_name);

## Description

Functions providing a font selection dialog.

## Details

### GimpRunFontCallback ()

    void        (*GimpRunFontCallback)          (const gchar *font_name,
                                                 gboolean dialog_closing,
                                                 gpointer user_data);

font_name :

dialog_closing :

user_data :

GimpRunFontCallback

### gimp_font_select_new ()

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

title :

font_name :

callback :

data :

Returns :

gimp_font_select_new

### gimp_font_select_destroy ()

    void        gimp_font_select_destroy        (const gchar *font_callback);

font_callback :

gimp_font_select_destroy

### gimp_fonts_popup ()

    gboolean    gimp_fonts_popup                (const gchar *font_callback,
                                                 const gchar *popup_title,
                                                 const gchar *initial_font);

Invokes the Gimp font selection.

This procedure popups the font selection dialog.

font_callback :

  The callback PDB proc to call when font selection is made.

popup_title :

  Title to give the font popup window.

initial_font :

  The name of the font to set as the first selected.

Returns :

  TRUE on success.

gimp_fonts_popup

### gimp_fonts_close_popup ()

    gboolean    gimp_fonts_close_popup          (const gchar *font_callback);

Popdown the Gimp font selection.

This procedure closes an opened font selection dialog.

font_callback :

  The name of the callback registered for this popup.

Returns :

  TRUE on success.

gimp_fonts_close_popup

### gimp_fonts_set_popup ()

    gboolean    gimp_fonts_set_popup            (const gchar *font_callback,
                                                 const gchar *font_name);

Sets the current font selection in a popup.

Sets the current font selection in a popup.

font_callback :

  The name of the callback registered for this popup.

font_name :

  The name of the font to set as selected.

Returns :

  TRUE on success.

gimp_fonts_set_popup