gimpfontselect 3 LIBGIMP Library gimpfontselectFunctions 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 <anchor id="GimpRunFontCallback"/>GimpRunFontCallback () GimpRunFontCallbackvoid (*GimpRunFontCallback) (const gchar *font_name, gboolean dialog_closing, gpointer user_data); font_name : dialog_closing : user_data : <anchor id="gimp-font-select-new"/>gimp_font_select_new () gimp_font_select_newconst gchar* gimp_font_select_new (const gchar *title, const gchar *font_name, GimpRunFontCallback callback, gpointer data); title : font_name : callback : data : Returns : <anchor id="gimp-font-select-destroy"/>gimp_font_select_destroy () gimp_font_select_destroyvoid gimp_font_select_destroy (const gchar *font_callback); font_callback : <anchor id="gimp-fonts-popup"/>gimp_fonts_popup () gimp_fonts_popupgboolean 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. <anchor id="gimp-fonts-close-popup"/>gimp_fonts_close_popup () gimp_fonts_close_popupgboolean 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. <anchor id="gimp-fonts-set-popup"/>gimp_fonts_set_popup () gimp_fonts_set_popupgboolean 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.