1Prima::Dialog::FontDialUosge(r3)Contributed Perl DocumenPtraitmiao:n:Dialog::FontDialog(3)
2
3
4
6 Prima::Dialog::FontDialog - standard font dialog
7
9 use Prima qw(Application Dialog::FontDialog);
10 my $f = Prima::Dialog::FontDialog-> create;
11 return unless $f-> execute == mb::OK;
12 $f = $f-> logFont;
13 print "$_:$f->{$_}\n" for sort keys %$f;
14
16 The dialog provides selection of font by name, style, size, and
17 encoding. The font selected is returned by logFont property.
18
20 Properties
21 fixedOnly BOOLEAN
22 Selects whether only the fonts of fixed pitch ( 1 ) or all fonts (
23 0 ) are displayed in the selection list.
24
25 Default value: 0
26
27 logFont FONT
28 Provides access to the interactive font selection as a hash
29 reference. FONT format is fully compatible with
30 "Prima::Drawable::font".
31
32 sampleText STRING
33 Sample line of text featuring current font selection.
34
35 Default value: AaBbYyZz
36
37 showHelp BOOLEAN
38 Create-only property.
39
40 Specifies if the help button is displayed in the dialog.
41
42 Default value: 0
43
44 Events
45 BeginDragFont
46 Called when the user starts dragging a font from the font sample
47 widget by left mouse button.
48
49 Default action reflects the status in the dialog title
50
51 EndDragFont $WIDGET
52 Called when the user releases the mouse drag over a Prima widget.
53 Default action applies currently selected font to $WIDGET.
54
56 Dmitry Karasik, <dmitry@karasik.eu.org>.
57
59 Prima, Prima::Window, Prima::Drawable.
60
61
62
63perl v5.32.0 2020-07-28 Prima::Dialog::FontDialog(3)