The SetFontOption2 method sets embed options for a given font
HRESULT SetFontOption2(
[ in, string ] BSTR p_wsFontName,
[ in ] BOOL p_bAlwaysEmbed,
[ in ] BOOL p_bNeverEmbed
);
Parameters:
p_wsFontName
[in] font name
p_bAlwaysEmbed
[out] always embed flag for the font
p_bNeverEmbed
[out] never embed flag for the font
Return values:
S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - no profile loaded
NV_INVALID_OPTION - wrong font name