The GetFontOption method retrieves embed options for a given font
HRESULT GetFontOption(
[in, string] LPCWSTR p_wsFontName,
[out] BOOL* p_pbAlwaysEmbed,
[out] BOOL* p_pbNeverEmbed
);
Parameters:
p_wsFontName
[in] font name
p_pbAlwaysEmbed
[out] pointer to a boolean that will contain the always embed flag for the font
p_pbNeverEmbed
[out] pointer to a boolean that will contain the never embed flag for the font
Return values:
S_OK on success or COM error codeNV_NOT_INITIALIZED - Initialize was not calledNV_UNKNOWN_PROFILE - no profile loadedNV_INVALID_OPTION - wrong font name