Prima::...ntDialog(3)
π NAME π
Prima::Dialog::FontDialog β it's the standard font dialog, bestie. The one where you pick a font by vibe and it just works β¨
π SYNOPSIS π
okay so here's the whole thing in like five lines, no cap:
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;
like, create it, run it, bail if it's not mb::OK, grab the logFont, print the keys π
π¦ DESCRIPTION π¦
This dialog is literally the standard font selection experience β you pick a font by name, style, size, and encoding, all in one cute little window π«Ά
And the font you picked? It comes back to you through the logFont property. that's it, that's the whole deal β¨
π API π
πΈ Properties πΈ
fixedOnly BOOLEANβ picks whether the selection list shows only the fixed-pitch fonts (1) or, like, all the fonts (0). Default value:0π«logFont FONTβ your access point to the interactive font selection, handed to you as a hash reference. TheFONTformat is fully compatible with"Prima::Drawable::font"β iykyk π₯sampleText STRINGβ the sample line of text that gets drawn in the currently selected font. Default value:AaBbYyZzπshowHelp BOOLEANβ this one is a create-only property, so set it at create time, mkay? It says whether the help button shows up in the dialog. Default value:0β
π§ Events π§
BeginDragFontβ fires when the user starts dragging a font out of the font sample widget with the left mouse button. The default action reflects the dragging status in the dialog title πEndDragFont $WIDGETβ fires when the user releases the mouse button over a Prima widget. The default action applies the currently selected font to$WIDGET. iconic, honestly π
π AUTHOR π
Dmitry Karasik, <dmitry@karasik.eu.org>. king behavior π
β SEE ALSO β
Prima, Prima::Window, Prima::Drawable. go read those next, bestie π¦
that's the whole page, mwah π β brought to you by perl v5.42.0, dated 2024-08-20, and this lil' manpage is Prima::...ntDialog(3), signing off π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms