ImageGear for C and C++ on Linux v18.8 - Updated
IG_PDF_font_get_name
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_FONT > IG_PDF_font_get_name

Gets the name of a font.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_font_get_name(
        HIG_PDF_FONT hFont,
        LPSTR buffer, 
        LONG bufSize,
        LPLONG lpCharacterNum
);

Arguments:

Name Type Description
hFont HIG_PDF_FONT The font whose name is obtained.
buffer LPSTR Buffer into which the font's name is stored. The client may pass NULL to obtain the buffer size, then call the method with a buffer of the appropriate size.
bufSize LONG Length of buffer, in bytes.
lpCharacterNum LPLONG The number of characters in the font name.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

The behavior depends on the font type; for a Type 3 font it gets the value of the Name key in a PDF Font resource. For other types, it gets the value of the BaseFont key in a PDF font resource.