diff --git a/docs/tkd/widget/common/font.html b/docs/tkd/widget/common/font.html index 949dce2..8e6b159 100644 --- a/docs/tkd/widget/common/font.html +++ b/docs/tkd/widget/common/font.html @@ -246,15 +246,28 @@
Font module.
MIT. See LICENSE for full details.
These are common commands that apply to all widgets that have them injected. -
widget.setFont("PragmataPro", 10, FontStyle.bold, FontStyle.italic);
-
-These are common commands that apply to all widgets that have them injected.
Set the font and style for the widget.
string font | The name of the font like 'Arial' or 'arial'. |
int size | The size of the font like '12'. |
FontStyle[] styles | The different font styles. |
This widget to aid method chaining. +
widget.setFont("PragmataPro", 10, FontStyle.bold, FontStyle.italic); ++
tkd.element.fontstyle for font styles.
Set the font and style for the widget via a simple string. + This method is exists to set the font using the output of the font dialog. +
string fontInfo | The output of the file dialog. |
This widget to aid method chaining. + +
auto dialog = new FontDialog("Choose a font") + .setCommand(delegate(CommandArgs args){ + widget.setFont(args.dialog.font); + }) + .show(); ++
tkd.window.dialog.fontdialog for how to recieve output.