Prima::FontDialog - standard font dialog
use Prima::FontDialog; my $f = Prima::FontDialog-> create; return unless $f-> execute == mb::OK; $f = $f-> logFont; print "$_:$f->{$_}\n" for sort keys %$f;
The dialog provides selection of font by name, style, size, and encoding. The font selected is returned by logFont property.
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.
Prima::Drawable::font
Sample line of text featuring current font selection.
Default value: AaBbYyZz
Create-only property.
Specifies if the help button is displayed in the dialog.
Called when the user starts dragging a font from the font sample widget by left mouse button.
Default action reflects the status in the dialog title
Called when the user releases the mouse drag over a Prima widget. Default action applies currently selected font to $WIDGET.
Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima, Prima::Window, Prima::Drawable.
To install Prima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima
CPAN shell
perl -MCPAN -e shell install Prima
For more information on module installation, please visit the detailed CPAN module installation guide.