ImageGear for C and C++ on Linux - Updated
IG_PDE_font_sum_widths
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_FONT > IG_PDE_font_sum_widths

Gets the sum to the widths of nTextLen characters from a string of single or multi-byte characters.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_font_sum_widths(
        HIG_PDE_FONT hFont,
        LPBYTE lpText,
        LONG nTextLen,
        LPLONG lpnSum 
);

Arguments:

Name Type Description
hFont HIG_PDE_FONT PDE font object.
lpText LPBYTE Pointer into a string of characters.
nTextLen LONG Number of characters in the string.
lpnSum LPLONG Width of text string in EM space. (In EM space, the width of "M" is about 1000 EM units).

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.