Contents

font

A string containing font settings, such as the font family, size, and weight.

Declaration

attribute DOMString font;

Discussion

Set this property to a string specifying all the font properties you wish to set, just as you would the CSS font property. Note that you must use the combined (all-in-one) font settings string. Setting individual font properties such as font-size is not supported.

See Also

Drawing Text