Gets or sets the name of the font used for text in the object.
HRESULT IHTMLCSSStyleDeclaration::get_fontFamily(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_fontFamily(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
family-name Any of the available font families supported by the browser. For example,
generic-name Any of the following font families:
Returns S_OK if successful, or an error value otherwise.
The value is a prioritized list of font family names and generic family names. List items are separated by commas to minimize confusion between multiple-word font family names. If the font family name contains white space, it should appear in single or double quotation marks; generic font family names are values and cannot appear in quotation marks.
Because you do not know which fonts users have installed, you should provide a list of alternatives with a generic font family at the end of the list. This list can include embedded fonts. For more information about embedding fonts, see the @font-face rule.
The default for this property can be set for Internet Explorer on the General tab of the Internet Options menu by clicking the Fonts button.