ImageGear for C and C++ on Windows v19.10 - Updated
IG_PDE_font_get_widths_now
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_FONT > IG_PDE_font_get_widths_now

Gets a Type0 font's width information for only the characters used in the file.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_font_get_widths_now(
        HIG_PDE_FONT hFont,
        HIG_PDF_DOC hDoc 
);

Arguments:

Name Type Description
hFont HIG_PDE_FONT PDE font whose widths are found.
hDoc HIG_PDF_DOC The container document.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Call this routine when the font was created with the IG_PDE_FONT_DEFER_WIDTHS flag but without the IG_PDE_FONT_CREATE_EMBEDDED flag (if the font is to be embedded, call IG_PDE_font_subset_now, which also gets the width info).