- * Return value: %TRUE if the font could be set successfully; %FALSE
- * if no such font exists or if the @fontchooser doesn't belong
- * to a particular screen yet.
+ * Since: 3.2
+ */
+void
+gtk_font_chooser_set_font (GtkFontChooser *fontchooser,
+ const gchar *fontname)
+{
+ g_return_if_fail (GTK_IS_FONT_CHOOSER (fontchooser));
+ g_return_if_fail (fontname != NULL);
+
+ g_object_set (fontchooser, "font", fontname, NULL);
+}
+
+/**
+ * gtk_font_chooser_get_font_desc:
+ * @fontchooser: a #GtkFontChooser
+ *
+ * Gets the currently-selected font.
+ *
+ * Note that this can be a different string than what you set with
+ * gtk_font_chooser_set_font(), as the font chooser widget may
+ * normalize font names and thus return a string with a different
+ * structure. For example, "Helvetica Italic Bold 12" could be
+ * normalized to "Helvetica Bold Italic 12".
+ *
+ * Use pango_font_description_equal() if you want to compare two
+ * font descriptions.
+ *
+ * Return value: (transfer full) (allow-none): A #PangoFontDescription for the
+ * current font, or %NULL if no font is selected.