Limited time promo

GetFontOption2

English

This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Apr 08, 2022
novaPDF 11.x
We strive to keep our help as accurate as possible. If you notice any inconsistencies or outdated info please let us know.
The GetFontOption2 method retrieves embed options for a given font
HRESULT GetFontOption2(
    [in, string] BSTR 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 code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - no profile loaded
NV_INVALID_OPTION - wrong font name