A3DPDFTextGetWidth

A3DStatus A3DPDFTextGetWidth(A3DPDFText *pText, A3DDouble *pdSizeH, A3DDouble *pdSizeV)
A3DStatus A3DPDFTextGetWidth(A3DPDFText* pText, A3DDouble* pdSizeH, A3DDouble* pdSizeV)

Function to determine the width of a text string.

The width is returned in same units as the page. It may be horizontal or vertical, depending on the writing style. Thus the returned width has both a horizontal and vertical component. Please note that vertical size is not the height of the text, but the size for a vertical writing type. For most of fonts, the pdSizeV is zero.

Parameters

pText: The Text object to calculate the size of.

pdSizeH: The horizontal size of the text. Is used if writing style is horizontal.

pdSizeV: The vertical size of the text. Is used if writing style is vertical.

Returns

A3D_SUCCESS in case of success or an error code