Class: Gtk::FontDialog
- Inherits:
-
Object
- Object
- Gtk::FontDialog
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#choose_face(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
-
#choose_face_finish(result) ⇒ Pango::FontFace
Finishes the [methodGtk.FontDialog.choose_face] call.
-
#choose_family(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
-
#choose_family_finish(result) ⇒ Pango::FontFamily
Finishes the [methodGtk.FontDialog.choose_family] call.
-
#choose_font(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
-
#choose_font_and_features(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
-
#choose_font_and_features_finish(result, font_desc, font_features, language) ⇒ Boolean
Finishes the [methodGtk.FontDialog.choose_font_and_features] call.
-
#choose_font_finish(result) ⇒ Pango::FontDescription
Finishes the [methodGtk.FontDialog.choose_font] call.
-
#filter ⇒ Gtk::Filter
A filter to restrict what fonts are shown in the font chooser dialog.
-
#filter=(filter) ⇒ Gtk::Filter
A filter to restrict what fonts are shown in the font chooser dialog.
-
#font_map ⇒ Pango::FontMap
A custom font map to select fonts from.
-
#font_map=(font_map) ⇒ Pango::FontMap
A custom font map to select fonts from.
-
#initialize ⇒ Gtk::FontDialog
constructor
Creates a new
GtkFontDialogobject. -
#language ⇒ Pango::Language
The language for which the font features are selected.
-
#language=(language) ⇒ Pango::Language
The language for which the font features are selected.
-
#modal ⇒ Boolean
Returns whether the font chooser dialog blocks interaction with the parent window while it is presented.
-
#modal=(modal) ⇒ Boolean
Whether the font chooser dialog is modal.
-
#modal? ⇒ Boolean
Whether the font chooser dialog is modal.
-
#title ⇒ String
A title that may be shown on the font chooser dialog that is presented by [methodGtk.FontDialog.choose_font].
-
#title=(title) ⇒ String
A title that may be shown on the font chooser dialog that is presented by [methodGtk.FontDialog.choose_font].
Constructor Details
#initialize ⇒ Gtk::FontDialog
Creates a new GtkFontDialog object.
Instance Method Details
#choose_face(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font face.
A font face represents a font family and style, but no specific font size.
#choose_face_finish(result) ⇒ Pango::FontFace
Finishes the [methodGtk.FontDialog.choose_face] call.
Note that this function returns a [errorGtk.DialogError.DISMISSED]
error if the user cancels the dialog.
#choose_family(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font family.
#choose_family_finish(result) ⇒ Pango::FontFamily
Finishes the [methodGtk.FontDialog.choose_family] call.
Note that this function returns a [errorGtk.DialogError.DISMISSED]
error if the user cancels the dialog.
#choose_font(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font.
If you want to let the user select font features as well,
use [methodGtk.FontDialog.choose_font_and_features] instead.
#choose_font_and_features(parent, initial_value, cancellable, callback, user_data) ⇒ nil
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font
and specify features for the selected font.
Font features affect how the font is rendered, for example
enabling glyph variants or ligatures.
#choose_font_and_features_finish(result, font_desc, font_features, language) ⇒ Boolean
Finishes the [methodGtk.FontDialog.choose_font_and_features] call.
The selected font and features are returned in font_desc and
font_features.
Note that this function returns a [errorGtk.DialogError.DISMISSED]
error if the user cancels the dialog.
#choose_font_finish(result) ⇒ Pango::FontDescription
Finishes the [methodGtk.FontDialog.choose_font] call.
Note that this function returns a [errorGtk.DialogError.DISMISSED]
error if the user cancels the dialog.
#filter ⇒ Gtk::Filter
A filter to restrict what fonts are shown in the font chooser dialog.
#filter=(filter) ⇒ Gtk::Filter
A filter to restrict what fonts are shown in the font chooser dialog.
#font_map ⇒ Pango::FontMap
A custom font map to select fonts from.
A custom font map can be used to present application-specific
fonts instead of or in addition to the normal system fonts.
#font_map=(font_map) ⇒ Pango::FontMap
A custom font map to select fonts from.
A custom font map can be used to present application-specific
fonts instead of or in addition to the normal system fonts.
#language ⇒ Pango::Language
The language for which the font features are selected.
#language=(language) ⇒ Pango::Language
The language for which the font features are selected.
#modal ⇒ Boolean
Returns whether the font chooser dialog blocks interaction
with the parent window while it is presented.
#modal=(modal) ⇒ Boolean
Whether the font chooser dialog is modal.
#modal? ⇒ Boolean
Whether the font chooser dialog is modal.
#title ⇒ String
A title that may be shown on the font chooser
dialog that is presented by [methodGtk.FontDialog.choose_font].
#title=(title) ⇒ String
A title that may be shown on the font chooser
dialog that is presented by [methodGtk.FontDialog.choose_font].