Virtualvfunc_VirtualDeprecatedvfunc_Gets the Pango.FontFace representing the selected font group details (i.e. family, slant, weight, width, etc).
If the selected font is not installed, returns null.
since 4.10: Use Gtk.FontDialog and Gtk.FontDialogButton instead
VirtualDeprecatedvfunc_Gets the Pango.FontFamily representing the selected font family.
Font families are a collection of font faces.
If the selected font is not installed, returns null.
since 4.10: Use Gtk.FontDialog and Gtk.FontDialogButton instead
VirtualDeprecatedvfunc_Gets the custom font map of this font chooser widget,
or null if it does not have one.
since 4.10: Use Gtk.FontDialog and Gtk.FontDialogButton instead
VirtualDeprecatedvfunc_The selected font size.
since 4.10: Use Gtk.FontDialog and Gtk.FontDialogButton instead
VirtualDeprecatedvfunc_Adds a filter function that decides which fonts to display in the font chooser.
Deprecatedfilter: Gtk.FontFilterFunc
since 4.10: Use Gtk.FontDialog and Gtk.FontDialogButton instead
VirtualDeprecatedvfunc_Sets a custom font map to use for this font chooser widget.
A custom font map can be used to present application-specific fonts instead of or in addition to the normal system fonts.
FcConfig *config;
PangoFontMap *fontmap;
config = FcInitLoadConfigAndFonts ();
FcConfigAppFontAddFile (config, my_app_font_file);
fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT);
pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (fontmap), config);
gtk_font_chooser_set_font_map (font_chooser, fontmap);
Note that other GTK widgets will only be able to use the application-specific font if it is present in the font map they use:
context = gtk_widget_get_pango_context (label);
pango_context_set_font_map (context, fontmap);
since 4.10: Use Gtk.FontDialog and Gtk.FontDialogButton instead
Interface for implementing FontChooser. Contains only the virtual methods that need to be implemented.