font property
[This documentation is preliminary and is subject to change.]
Gets or sets the current font for the context.
![]() ![]() |
Syntax
HRESULT value = object.put_font(BSTR v);HRESULT value = object.get_font(BSTR* p);
Property values
Type: BSTR
The current font description.
Standards information
- HTML Canvas 2D Context, Section 11
Remarks
The font string can consist of any CSS font and is analogous to the CSS font property. The default font for a canvas context is 10px sans-serif. Values that are not CSS font values are ignored.
Build date: 1/23/2012
.png)
.png)