ImageGear for C and C++ on Windows v19.3 - Updated
IG_PDF_font_translate_widths
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_FONT > IG_PDF_font_translate_widths

Translates an array of 256 glyph advance widths from their order in the PDF file into host encoding order.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_font_translate_widths(
        HIG_PDF_FONT hFont,
        LPSHORT inP,
        LPSHORT outP
);

Arguments:

Name Type Description
hFont HIG_PDF_FONT The font whose glyph widths are translated.
inP LPSHORT Array of glyph advance widths to rearrange.
outP LPSHORT Rearranged array of glyph advance widths.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

If the widths are already in host encoding order, the widths are merely copied. All un-encoded code points are given a width of zero. For non-Roman character set viewers, it is not appropriate to call this function.