ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_FONT > IG_PDF_font_get_widths

Gets the advance width of every glyph in a font.


Copy Code
        HIG_PDF_FONT hFont,
        LPSHORT lpWidths


Name Type Description
hFont HIG_PDF_FONT The font whose glyph advance widths are obtained.
lphSubType LPSHORT An array of glyph advance widths, measured in character space units. Unencoded code points will have a width of zero. For non-Roman character set viewers, an array for a single byte range (0 through 255).

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.


The advance width is the amount by which the current point advances when the glyph is drawn. The advance width may not correspond to the visible width of the glyph (for example, a glyph representing an accent mark might have an advance width of zero so that characters can be drawn under it). For this reason, the advance width cannot be used to determine the glyphs' bounding boxes. For non-Roman character set viewers, this function gets the width for a single byte range (0 through 255).

Is this page helpful?
Yes No
Thanks for your feedback.