Hoogle Search
Within LTS Haskell 24.70 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fontChooserSetFont :: (HasCallStack, MonadIO m, IsFontChooser a) => a -> Text -> m ()gi-gtk3 GI.Gtk.Interfaces.FontChooser Sets the currently-selected font. Since: 3.2
fontChooserSetFontDesc :: (HasCallStack, MonadIO m, IsFontChooser a) => a -> FontDescription -> m ()gi-gtk3 GI.Gtk.Interfaces.FontChooser Sets the currently-selected font from fontDesc. Since: 3.2
-
gi-gtk3 GI.Gtk.Interfaces.FontChooser 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.
C code
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: 3.18 fontChooserSetLanguage :: (HasCallStack, MonadIO m, IsFontChooser a) => a -> Text -> m ()gi-gtk3 GI.Gtk.Interfaces.FontChooser Sets the language to use for font features. Since: 3.24
fontChooserSetLevel :: (HasCallStack, MonadIO m, IsFontChooser a) => a -> [FontChooserLevel] -> m ()gi-gtk3 GI.Gtk.Interfaces.FontChooser Sets the desired level of granularity for selecting fonts. Since: 3.24
fontChooserSetPreviewText :: (HasCallStack, MonadIO m, IsFontChooser a) => a -> Text -> m ()gi-gtk3 GI.Gtk.Interfaces.FontChooser Sets the text displayed in the preview area. The text is used to show how the selected font looks. Since: 3.2
fontChooserSetShowPreviewEntry :: (HasCallStack, MonadIO m, IsFontChooser a) => a -> Bool -> m ()gi-gtk3 GI.Gtk.Interfaces.FontChooser Shows or hides the editable preview entry. Since: 3.2
orientableSetOrientation :: (HasCallStack, MonadIO m, IsOrientable a) => a -> Orientation -> m ()gi-gtk3 GI.Gtk.Interfaces.Orientable Sets the orientation of the orientable. Since: 2.16
recentChooserSetCurrentUri :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Text -> m ()gi-gtk3 GI.Gtk.Interfaces.RecentChooser Sets uri as the current URI for chooser. Since: 2.10
-
gi-gtk3 GI.Gtk.Interfaces.RecentChooser Sets filter as the current RecentFilter object used by chooser to affect the displayed recently used resources. Since: 2.10