IPXC_ContentCreator::CalcTextSize Method

From PDF XChange PDF SDK
Jump to: navigation, search


Calculates the resulting text size based on the font size.

Syntax

HRESULT CalcTextSize([in]                    double   nFontSize,
                     [in]                    LPWSTR   pText,
                     [out]                   double*  pWidth,
                     [out]                   double*  pHeight,
                     [in, defaultvalue(-1)]  LONG     nTextLen);

Parameters

nFontSize
[in] Value of double containing the font size.
pText
[in] Value of LPWSTR containing the text which size should be calculated.
pWidth
[out] Pointer to double containing the width of the text string.
pHeight
[out] Pointer to double containing the height of the text string.
nTextLen
[in, defaultvalue(-1)] Value of LONG containing the text's length.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXC_ContentCreator