IAgentCommandsEx::SetFontName

[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]

HRESULT SetFontName(
   BSTR bszFontName  // font to be displayed in character's pop-up menu
);

Sets the font displayed in the character's pop-up menu.

  • Returns S_OK to indicate the operation was successful.

bszFontName

A BSTR that sets the font displayed in the character's pop-up menu.

This property determines the font used to display text in the character's pop-up menu. The default value for the font setting is based on the menu font setting for the character's language ID setting-or if that's not set-the user default language ID setting.

This property applies only to your client application's use of the character; the setting does not affect other clients of the character or other characters of your client application.

See Also

IAgentCommandsEx::GetFontName, IAgentCommandsEx::GetFontSize, IAgentCommandsEx::SetFontSize