Scroll to navigation

Prima::Dialog::FontDialog(3) User Contributed Perl Documentation Prima::Dialog::FontDialog(3)

NAME

Prima::Dialog::FontDialog - standard font dialog

SYNOPSIS

        use Prima qw(Application Dialog::FontDialog);
        my $f = Prima::Dialog::FontDialog-> create;
        return unless $f-> execute == mb::OK;
        $f = $f-> logFont;
        print "$_:$f->{$_}\n" for sort keys %$f;

DESCRIPTION

The dialog provides standard font selection by name, style, size, and encoding. The selected font is returned by the logFont property.

API

Properties

Selects whether only the fonts of fixed pitch ( 1 ) or all fonts ( 0 ) are displayed in the selection list.

Default value: 0

Provides access to the interactive font selection as a hash reference. FONT format is fully compatible with "Prima::Drawable::font".
Sample line of text drawn with the currently selected font

Default value: AaBbYyZz

A create-only property.

Specifies if the help button is displayed in the dialog.

Default value: 0

Events

Called when the user starts dragging a font from the font sample widget by the left mouse button.

The default action reflects the dragging status in the dialog title

Called when the user releases the mouse button over a Prima widget. The default action applies the currently selected font to $WIDGET.

AUTHOR

Dmitry Karasik, <dmitry@karasik.eu.org>.

SEE ALSO

Prima, Prima::Window, Prima::Drawable.

2024-02-01 perl v5.38.2