Font.setFont

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.

  1. auto setFont(string font, int size, FontStyle[] styles)
  2. auto setFont(string fontInfo)
    mixintemplate Font()
    setFont
    (
    this T
    )
    (
    string fontInfo
    )

Parameters

fontInfo string

The output of the file dialog.

Return Value

Type: auto

This widget to aid method chaining.

Examples

auto dialog = new FontDialog("Choose a font")
    .setCommand(delegate(CommandArgs args){
        widget.setFont(args.dialog.font);
    })
    .show();

See Also

tkd.window.dialog.fontdialog for how to recieve output.

Meta