API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Text Object Functions > IG_vect_textobj_get_textwidth_W |
This function calculates the actual width of the UTF16 text string, taking into account the current Text Object settings.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_textobj_get_textwidth_W( HIG_VECT_TEXTOBJ hTextobj, LPAT_WCHAR lpText, VECT_REAL* lpWidth ); |
Name | Type | Description |
---|---|---|
hTextobj | HIG_VECT_TEXTOBJ | Handle to the Text Object. |
lpText | LPAT_WCHAR | UTF16 text string to calculate actual width. If this parameter is NULL, then the width is calculated for the codepage text assigned to the text object. |
lpWidth | VECT_REAL* | Buffer for the width being calculated. |
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
None