function TextfontCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length > 2) {
        this.family = parsed.args[0];
        this.style = parsed.args[1];
        this.size = parsed.args[2];
    } else if (parsed.args.length > 1) {
        this.familyOrStyle = parsed.args[0];
        this.size = parsed.args[1];
    } else if (parsed.args.length > 0) {
        var arg = parsed.args[0];
        if (arg.child.type === 'string' || arg.child instanceof statements.StringStatement) this.familyOrStyle = arg;
        else this.size = arg;
    } else {
        this.reset = true;
    }
}
function TextfontCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length > 2) {
        this.family = parsed.args[0];
        this.style = parsed.args[1];
        this.size = parsed.args[2];
    } else if (parsed.args.length > 1) {
        this.familyOrStyle = parsed.args[0];
        this.size = parsed.args[1];
    } else if (parsed.args.length > 0) {
        var arg = parsed.args[0];
        if (arg.child.type === 'string' || arg.child instanceof statements.StringStatement) this.familyOrStyle = arg;
        else this.size = arg;
    } else {
        this.reset = true;
    }
}
function TextfontCommand ( args ) { var parsed = new statements . ArgumentStatement ( args ) ; if ( parsed . args . length > 2 ) { this . family = parsed . args [ 0 ] ; this . style = parsed . args [ 1 ] ; this . size = parsed . args [ 2 ] ; } else if ( parsed . args . length > 1 ) { this . familyOrStyle = parsed . args [ 0 ] ; this . size = parsed . args [ 1 ] ; } else if ( parsed . args . length > 0 ) { var arg = parsed . args [ 0 ] ; if ( arg . child . type === 'string' || arg . child instanceof statements . StringStatement ) this . familyOrStyle = arg ; else this . size = arg ; } else { this . reset = true ; } }
Modifies the DRAWTEXT font

@param {String} args The arguments to the command
Modifies the DRAWTEXT font